ID EN
Random

setstate

Python 3.11

state should have been obtained from a previous call to getstate(), and setstate() restores the internal state of the generator to what it was at the time getstate() was called.

Syntax

PYTHON
random.setstate(state)

See Also

getstate() setstate() getstate()