SciPy

numpy.random.bit_generator.BitGenerator.state

attribute

BitGenerator.state

Get or set the PRNG state

The base BitGenerator.state must be overridden by a subclass

Returns:
state : dict

Dictionary containing the information required to describe the state of the PRNG