I have created a numpy array
a=np.array([1,2,3])
a
>>> array([1, 2, 3])
I would like to change the positions of the elements.
My expected output should only consists of these three patterns
[array([1, 2, 3]),
array([2, 3, 1]),
array([1, 3, 2])]
I tried with permutation library like below
b=[]
for i in range(3):
b.append(np.random.permutation(a)
Actual output:
[array([1, 3, 2]),
array([1, 3, 2]),
array([1, 2, 3])]
But I'm getting repeated values some times!!
Ideas are welcome!!
Thanks in Advance!!