A pseudorandom number generator or object that can be converted to one.
If None, turns into the module
np.random.If an integer, turns into a
np.random.RandomStateseeded with thatinteger.If none of the above, it is used unmodified. In this case, it is assumedthat the object implements whatever methods are required for the use caseat hand. For example, it might be an existing instance of
np.random.RandomStateor a custom pseudorandom number generatorimplementation.