mercredi 3 février 2016

Pythons random.seed isn't working

I am trying to seed an instance of pythons random. However when I run the code below it generates a different answer each time.

rnd = random.Random()
rnd.seed(mapSeed)
print(rnd.random())




Aucun commentaire:

Enregistrer un commentaire