The random.getstate()
method in Python is simply used to get the present or current state of the pseudo-random number generator.
random.getstate()
The random.getstate()
method does not take any parameter value.
Let’s return the current state of the pseudo-random number generator.
import randomprint(random.getstate())
random.getstate()
method.