numpy.random.RandomState.get_state
method
- 
RandomState.get_state() - 
Return a tuple representing the internal state of the generator.
For more details, see
set_state.- Returns
 - 
- 
out{tuple(str, ndarray of 624 uints, int, int, float), dict} - 
The returned tuple has the following items:
- the string ‘MT19937’.
 - a 1-D array of 624 unsigned integer keys.
 - an integer 
pos. - an integer 
has_gauss. - a float 
cached_gaussian. 
If
legacyis False, or the BitGenerator is not NT19937, then state is returned as a dictionary. - 
legacybool - 
Flag indicating the return a legacy tuple state when the BitGenerator is MT19937.
 
 - 
 
See also
Notes
set_stateandget_stateare 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. 
    © 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
    https://numpy.org/doc/1.18/reference/random/generated/numpy.random.RandomState.get_state.html