nlcpy.random.RandomState.get_state

RandomState.get_state(self, legacy=True)

Returns an ndarray representing the internal state of the generator.

For more details, see set_state.

Parameters
legacybool

Not used in NLCPy.

Returns
outndarray

An ndarray containing seeds to be required for generating random numbers.

See also

RandomState.set_state

Sets the internal state of the generator from an ndarray.

Note

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