I was believing that setting a seed always gives the same result. But I got different result each times.How to set the seed so that we get the same result each time?
Here is the MWE:
import numpy as np
import pandas as pd
random_state = 100
np.random.state = random_state
np.random.seed = random_state
mu, sigma = 0, 0.25
eps = np.random.normal(mu,sigma,size=100)
print(eps[0])
I get different result each times.
Update:
I can not use np.random.seed(xxx)