samedi 25 juillet 2015

Seeding 0.0 to 1.0 uniform pseudorandom generator with value outside of range

How does a random generator handle seeds outside of the bounds it is meant to return? For example, if I seed random in python with 10000 and then 5000 and call random.random() after each seeding, they each return different values.

I'm not familiar with pseudorandom number generating algorithms.

random.random() returns the next random floating point number in the range [0.0, 1.0)




Aucun commentaire:

Enregistrer un commentaire