randomstate.prng.pcg32.get_state

randomstate.prng.pcg32.get_state()

Return a dict containing the internal state of the generator.

For more details, see set_state.

Returns:out – The returned dictionary has the following items:
  • name: the string containing the PRNG type.
  • state tuple containing the PRNG-specific state
  • gauss: a dict with two items :has_gauss and cached_gaussian
  • gauss_float: a dict with two items :has_gauss and cached_gaussian
  • uint32: a dict with two items :has_uint32 and uint32
  • seed: the seed used to initialize the RandomState object
  • version: The version of the RandomState object (not currently used)
Return type:dict

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.

For information about the specific structure of the PRNG-specific component, see the class documentation.