numpy.random.permutation(x)
Permutiert eine Liste oder generiert eine Permutation über einen Bereich:
>>> np.random.permutation(6)
array([1, 3, 2, 5, 0, 4])
>>> np.random.permutation(6)
array([1, 0, 4, 3, 5, 2])
>>> np.random.permutation([3,6,8])
array([8, 3, 6])
>>> np.random.permutation([3,6,8])
array([6, 8, 3])