import numpy as np
np.random.seed(None)
st0 = np.random.get_state()
print(np.random.randint(0, 100, 10))
np.random.set_state(st0)
print(np.random.randint(0, 100, 10))
How can I retrieve the current seed of NumPy's random number generator?