If I use the Random number generator function in different programming languages and I chose the same seed .. Do they have to give me the same random numbers ?
for example I used Java and Perl ... gave different numbers.
If I use the Random number generator function in different programming languages and I chose the same seed .. Do they have to give me the same random numbers ?
for example I used Java and Perl ... gave different numbers.
Portability across languages is one reason to use your own random number generator. This article gives a very small random number generator whose algorithm has been vetted by experts. You can easily port the generator to any language that supports basic operations on 32-bit unsigned integers. Every implementation should return the same sequence of outputs given the same seeds.