lundi 10 août 2020

NumPy - Random Seed not working when sample size changes?

Can anyone help me understand why the following code will not keep random_list_2 the same when I change the sample size, say from 3000 to 5000?

import numpy as np
np.random.seed(2)
sample_size = 3000

random_list_1 = np.random.randint(low = 1, high = 3, size = sample_size).tolist()
random_list_2 = np.random.randint(low = 100000, high = 1000000000, size = sample_size).tolist()



Aucun commentaire:

Enregistrer un commentaire