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

Raymond Hettinger python at rcn.com
Wed Mar 25 02:59:27 CET 2009


> Greg> Think about it: A shuffling algorithm is a function from a random
> Greg> number to a permutation. There's no way you can get more permutations
> Greg> out than there are random numbers to put in.

If our random number generator can produce more possible shuffles than there are atoms in the universe, I say you don't worry about 
it.


Raymond 




More information about the Python-ideas mailing list