samedi 27 mai 2017

Random number generator that returns only one number each time in python

Does exist random number generator in python that returns only one random number each time when next() function is called? Numbers should not repeat.

I need to generate more than million different numbers what sounds very memory consuming in case all the number are generated at same time and stored in a list. Numbers have to be unique - does not repeat.




Aucun commentaire:

Enregistrer un commentaire