numpy.random.Generator.permutation
method
- random.Generator.permutation(x, axis=0)
Randomly permute a sequence, or return a permuted range.
- Parameters:
- x : int or array_like
If x is an integer, randomly permute
np.arange(x). If x is an array, make a copy and shuffle the elements randomly.