[Python-ideas] About adding a new iteratormethodcalled "shuffled"

Jan Kanis jan.kanis at phil.uu.nl
Thu Mar 26 21:19:16 CET 2009

Just out of curiosity, would doing

l = range(2082)

give me (with a high probability) one of those permutations that is
unreachable with a single shuffle? If so, I'd presume you could get
any shuffle (in case you really cared) by calling random.shuffle
repeatedly and reseeding the prng in between.

More information about the Python-ideas mailing list