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
outtuple(ndarray, int, float)

The returned tuple has the following items:

  1. an ndarray containing seeds to be required for generating random numbers.

  2. an integer has_gauss.

  3. a float cached_gaussian.

参考

RandomState.set_state

Sets the internal state of the generator.

注釈

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