Following two version code should have given the same output. Looks like np.random.seed need to be called every time. Is it correct?
Is there any way to set seed once so that same random number generated everytime
np.random.seed(0)
for _ in range(10):
print(np.random.randint(low=1, high=100))
Output: 45 48 65 68 68 10 84 22 37 88
for _ in range(10):
np.random.seed(0)
print(np.random.randint(low=1, high=100))
Output: 45 45 45 45 45 45 45 45 45 45