nlcpy.random.RandomState.set_state¶
-
RandomState.
set_state
(self, state)¶ Sets the internal state of the generator from an ndarray.
For use if one has reason to manually (re-)set the internal state of the bit generator used by the RandomState instance.
- Parameters
- statendarray
An ndarray containing seeds to be required for generating random numbers.
- Returns
- outNone
Returns 'None' on success.
参考
RandomState.get_state
Returns a tuple representing the internal state of the generator.
注釈
RandomState.set_state()
andRandomState.get_state()
are not needed to work with any of therandom distributions in NLCPy.