mercredi 11 décembre 2019

interpretataion of the value take by the numpy random.seed()

Actually, I am curious to know, how the seed method interprets the value we pass to it of the numpy.random package I know the seed method is used to maintain the state of the random function so that it will generate the same output every time we execute the code but does it specify something that random function will generate whatever the number will be is statistically standardized or the variance of total number will the number you have passed to seed method or anything

please help

import numpy as np
np.random.seed(101)
np.random.randn(4,4)

# will give the output
0.421177  0.587635  0.788256  0.482779
0.606076 -0.313919 -0.750010  0.569556
-0.901587  0.674378  0.504509 -0.555530
0.187578 -0.688103 -0.803551  0.816346

so overall my question is there any properties in this generated number related to the number we provided to seed method




Aucun commentaire:

Enregistrer un commentaire