[Python-ideas] About adding a new iterator methodcalled "shuffled"

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 25 01:48:14 CET 2009

Steven D'Aprano wrote:

> In addition, the F-Y shuffle is limited by the period of the random 
> number generator:

*All* shuffling algorithms are limited by that.

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


More information about the Python-ideas mailing list