lundi 7 mai 2018

Does the seed function in numpy and random work need to be set in every module?

I am calling

np.random.seed(seed)
random.seed(seed)

in the main module foo.py. That module calls out to another module bar.py that also uses results from np.random and random. Does the latter also need to set the seed?

Aucun commentaire:

Enregistrer un commentaire