This question already has an answer here:
- random.seed(): What does it do? 11 answers
I know that, by using seed you get predictable values, everytime. But how to choose the value of seed. i.e. i.e. How should i select the value of x in numpy.random.seed(x)? I have seen some people choosing 0,1,2 etc. On what basis the value is chosen?
import numpy as np
np.random.seed(0)
np.random.rand(5)
np.random.seed(1)
np.random.rand(5)
Aucun commentaire:
Enregistrer un commentaire