mkl_random.MKLRandomState.get_state¶
- MKLRandomState.get_state(legacy=True)¶
Return a tuple representing the internal state of the generator.
For more details, see set_state.
- Parameters:
- legacybool, optional
Flag indicating to return a legacy tuple state.
- Returns:
- outtuple(str, bytes) or dict
The returned tuple has the following items:
a string specifying the basic pseudo-random number generation algorithm.
a bytes object holding the content of Intel MKL’s stream for the given BRNG.
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.
References