cupy.random.permutation#

cupy.random.permutation(a)[source]#

Returns a permuted range or a permutation of an array.

Parameters:

a (int or cupy.ndarray) – The range or the array to be shuffled.

Returns:

If a is an integer, it is permutation range between 0 and a - 1. Otherwise, it is a permutation of a.

Return type:

cupy.ndarray

See also

numpy.random.permutation()