lundi 26 juillet 2021

Which pseudo random number generator algorithm does java.util.Random in Java 8 use?

I'm trying to find out exactly how java.util.Random in java 8 generates its random numbers, more specifically the algorithm behind it. All I keep seeing is how to generate random numbers in java 8 and not the driving forces behind it.

If you could point me to any documentation regarding the PRNG that java.util.Random uses that would be perfect.

Also in case its been done already, is there a way of replicating the output of java.util.Random in python? A Quick test using a seed of 5 and int range of 0 to 100 gives different results to pythons random module




Aucun commentaire:

Enregistrer un commentaire