cupy.random.get_random_state#

cupy.random.get_random_state()[source]#

Gets the state of the random number generator for the current device.

If the state for the current device is not created yet, this function creates a new one, initializes it, and stores it as the state for the current device.

Returns:

The state of the random number generator for the device.

Return type:

RandomState