method
random.RandomState.
get_state
Return a tuple representing the internal state of the generator.
For more details, see set_state.
set_state
Flag indicating to return a legacy tuple state when the BitGenerator is MT19937, instead of a dict.
The returned tuple has the following items:
the string ‘MT19937’.
a 1-D array of 624 unsigned integer keys.
an integer pos.
pos
an integer has_gauss.
has_gauss
a float cached_gaussian.
cached_gaussian
If legacy is False, or the BitGenerator is not MT19937, then state is returned as a dictionary.
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.