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.

See also

RandomState.get_state

Returns a tuple representing the internal state of the generator.

Note

RandomState.set_state() and RandomState.get_state() are not needed to work with any of therandom distributions in NLCPy.