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

Andrew McNabb amcnabb at mcnabbs.org
Thu Mar 26 18:54:17 CET 2009


On Thu, Mar 26, 2009 at 11:43:35AM -0600, Adam Olsen wrote:
> 
> Is it or is it not broken?  That's all I want to know.  "maybe" isn't
> good enough.  "Not broken for small lists" implies it IS broken for
> large lists.
> 
> Disabling it (raising an exception for large lists) is of course just
> a stopgap measure.  Better would be a PRNG with a much larger period..
> but of course that'd require more CPU time and more seed.

It's only broken in a theoretical sense.  It's fun to think about, but I
wouldn't lose any sleep over it.


-- 
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868



More information about the Python-ideas mailing list