dpnp.random.RandomState.get_state

method

RandomState.get_state()[source]

Return an internal state of the generator.

For full documentation refer to numpy.random.RandomState.get_state.

Returns:

out -- An object representing the internal state of the generator.

Return type:

object

Notes

Unlike numpy.random.RandomState.get_state, which returns a snapshot of the state as plain data, this returns the live engine the generator draws from. Generating from the returned engine advances the state seen by this RandomState, and does so safely if other threads are drawing from it at the same time.