Randomize list order

Tim Peters tim.one at home.com
Thu Feb 22 23:19:40 EST 2001


[Warren Postma, wants to shuffle]

[/F]
> random.shuffle(list)

[Warren]
> Doh!  ;-)

Not your fault!  For some reason (or utter lack of reason ...),
random.shuffle() never made it into the docs.  The docs for random were
extensively reworked for 2.1, and several new features added.  And shuffle()
is documented now.





More information about the Python-list mailing list