
    
9j                    (    S SK Jr  S SKJr  S rS rg)    )annotations)
_generatorc                N    [         R                  " 5       nUR                  U 5      $ )zvShuffles an array.

Args:
    a (cupy.ndarray): The array to be shuffled.

.. seealso:: :meth:`numpy.random.shuffle`

)r   get_random_stateshufflearss     S/home/wildlama/miniconda3/lib/python3.13/site-packages/cupy/random/_permutations.pyr   r      s      
	$	$	&B::a=    c                N    [         R                  " 5       nUR                  U 5      $ )aA  Returns a permuted range or a permutation of an array.

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

Returns:
    cupy.ndarray: If `a` is an integer, it is permutation range between 0
    and `a` - 1.
    Otherwise, it is a permutation of `a`.

.. seealso:: :meth:`numpy.random.permutation`
)r   r   permutationr   s     r   r   r      s!     
	$	$	&B>>!r   N)
__future__r   cupy.randomr   r   r    r   r   <module>r      s    " "
r   