numpy.random.MT19937.state#

attribute

random.MT19937.state#

Get or set the PRNG state

Returns:
statedict

Dictionary containing the information required to describe the state of the PRNG. The returned dictionary is a new object, not a view of the generator’s internal state: later changes to the generator do not affect it, and modifying it does not affect the generator, so it can be stored and passed back to the setter without copying.