randomstate.prng.xorshift128.
set_state
(state)¶Set the internal state of the generator from a tuple.
For use if one has reason to manually (re-)set the internal state of the pseudo-random number generating algorithm.
Parameters: | state (dict or tuple) – The state dictionary should have the following keys
|
---|---|
Returns: | out – Returns ‘None’ on success. |
Return type: | None |
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.
For information about the specific structure of the PRNG-specific component, see the class documentation.