cupy.random.seed¶
-
cupy.random.
seed
(seed=None)[source]¶ Resets the state of the random number generator with a seed.
This function resets the state of the global random number generator for the current device. Be careful that generators for other devices are not affected.
Parameters: seed (None or int) – Seed for the random number generator. If None
, it usesos.urandom()
if available ortime.clock()
otherwise. Note that this function does not support seeding by an integer array.