randomstate.prng.mt19937.
get_state
()¶Return a tuple or dict representing the internal state of the generator.
For more details, see set_state
.
Parameters: | legacy (bool) – Flag indicating to return a legacy MT19937 state |
---|---|
Returns: | out – The returned dictionary has the following items:
|
Return type: | dict |
See also
Notes
set_state
and get_state
are not needed to work with any of the
random distributions in NumPy. If the internal state is manually altered,
the user should know exactly what he/she is doing.
For information about the specific structure of the PRNG-specific component, see the class documentation.