We're celebrating World Quantum Day 2022! Join us


Interpret an object as a pseudorandom number generator.

If random_state is None, returns the module np.random. If random_state is an integer, returns np.random.RandomState(random_state). Otherwise, returns random_state unmodified.

random_state The object to be used as or converted to a pseudorandom number generator.

The pseudorandom number generator object.