What's the easiest way to shuffle an array with python?
Beat me by 47 seconds.
Douglas Leeder
2009-01-23 18:38:41
Just be careful, shuffle was broken in earlier numpy versions (I think this still applies to the current Debian "stable"). If I remember correctly the bug only arose when shuffle was used on a >1d numpy array.
nikow
2009-01-23 21:29:07
This deserves an http://letmegooglethatforyou.com/?q=python+shuffle. Oh, look it's the second hit.
S.Lott
2009-01-23 21:59:23
@nikow: this has nothing to do with numpy. Just regular Python.
David Zaslavsky
2009-01-23 22:06:43
@David: Oh right, sorry, I missed that. I got almost very badly bitten by this numpy bug, so that stuck to my mind.
nikow
2009-01-24 22:05:06