random.shuffle?
Erik Max Francis
max at alcyone.com
Mon Jul 31 18:37:41 EDT 2000
Jake Speed wrote:
> It's not selecting from the deck touched so far; it's
> selecting from the untouched deck -- it's counting backwards.
> This is the correct way to do it.
Indeed. I managed to rather egregiously remember the Knuth algorithm
exactly wrong. How embarassing.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ Love is like war: easy to begin but very hard to stop.
\__/ H.L. Mencken
7 sisters productions / http://www.7sisters.com/
Web design for the future.
More information about the Python-list
mailing list