From: Yves <yve...@gm...> - 2006-10-26 14:49:20
|
Hi, It seems that random.shuffle does not 'shuffle' anymore when presented with an n-dimensional array. In [1]: import numpy as N In [2]: a = N.arange(5).reshape((5,1)) In [3]: a Out[3]: array([[0], [1], [2], [3], [4]]) In [4]: N.random.shuffle(a) In [5]: a Out[5]: array([[0], [1], [1], [3], [3]]) In [6]: N.__version__ Out[6]: '1.0.dev3390' After application some rows appear to be duplicated. Is this documented/intended behaviour? Cheers, YVES |