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

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 25 22:47:18 CET 2009

Antoine Pitrou wrote:

> The period of the generator should be (much) larger than the number of possible
> random numbers, because of the generator's internal state.

Hm, yes, I should have said a function from an
RNG state to a permutation. The initial state of
the RNG completely determines the permutation
generated, so there can't be more permutations
than states.


More information about the Python-ideas mailing list