c# - which method is equivalent Rand (int) in Visual Fox Pro to C # -


occupy method made ​​in migrating visual fox pro emigrarlo c #, problem have how know if method in visual fox pro:

rand(intvalue) 

method equal dotnet:

random r = new random (intvalue); r.next return (); 

assuming intvalue = 971 result generated in dotnet 2027119, need equal return foxpro.

primary question: how can make sure same result?

secondary question: know of online tool fox pro prove method gives me result rand ()?

primary question: how can make sure same result?

so want guarantee same result... 2 different random number generators... right.

intvalue in foxpro example seed value. why in world need guarantee 2 libraries use same random number generator (hint: not). seriously, if after random numbers, difference make?

if want known series of numbers don't want random number @ all. boggles mind. if code setup expect string of values random number generator there bigger problem. may generate map using numbers foxpro , numbers there.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -