Why is the first element of the permutation always the same? Am I
using random.permutation in the right way?

>> x

matrix([[0],
        [1],
        [2],
        [3]])
>> M.random.permutation(x)

array([[0],
       [1],
       [1],
       [0]])
>> M.random.permutation(x)

array([[0],
       [1],
       [2],
       [2]])
>> M.random.permutation(x)

array([[0],
       [1],
       [0],
       [0]])
>> M.random.permutation(x)

array([[0],
       [0],
       [2],
       [0]])
>> M.random.permutation(x)

array([[0],
       [0],
       [1],
       [0]])

>> M.__version__
'1.0rc1'
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to