randomGaussian()
Generate a random number based on a Gaussian probablity distribution
Last updated
Generate a random number based on a Gaussian probablity distribution
Last updated
mean
the mean of the distribution
std
the standard deviation of the distribution
This function picks a random value from a gaussian distribution of a specified mean µ
and standard deviation σ
.
The gaussian distribution prefers those points around the mean more that others. The farther the point is from the mean the less likely it is to be picked. But how far? the standard deviation parameter specifies that.
Find these documents helpful? Let the people who made them help your child learn to code at Strivemath!
We'd love to hear your Feedback/Comments here.