Search code examples
random

Random numbers across different programming languages


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.


Solution

  • No, unless the two languages happen to use the same algorithm.