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:

  1. a string specifying the basic pseudo-random number generation algorithm.

  2. a bytes object holding the content of Intel MKL’s stream for the given BRNG.

See also

set_state

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

MKL Documentation