mercredi 15 novembre 2023

Why is Java Math.random() not a "real" random? How does it work?

I am trying to understand the Math.random() method from java. I've heard this term "pseudorandom" being thrown around and that an algorithm is used to generate it. However, I don't quite understand how this algorithm works.

Does this mean that it is possible to predict every Math.random() value?




Aucun commentaire:

Enregistrer un commentaire