[Python-ideas] About adding a newiteratormethodcalled "shuffled"

Adam Olsen rhamph at gmail.com
Thu Mar 26 19:48:20 CET 2009

On Thu, Mar 26, 2009 at 12:36 PM, Raymond Hettinger <python at rcn.com> wrote:
> It's not even broken in a theoretical sense.  It does exactly what it says
> it does.
> Besides, this whole conversation is somewhat senseless.  You can't get any
> more randomness out of a generator than you put into the seed in the
> first place.  If you're not putting thousands of digits in your seed, then
> no PRNG is going to give you an equal chance of producing every possible
> shuffle for a large list.

Indeed, a million item list requires over 2 megabytes of entropy.

Adam Olsen, aka Rhamphoryncus

More information about the Python-ideas mailing list