randomGaussian()
Generate a random number based on a Gaussian probablity distribution
Example

circle(randomGaussian(150, 15), randomGaussian(150, 15), 25)Syntax
Input
Description

Description

Last updated
Generate a random number based on a Gaussian probablity distribution

circle(randomGaussian(150, 15), randomGaussian(150, 15), 25)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.
Last updated
randomGaussian([mean], [std]) circle(randomGaussian(150, 50), randomGaussian(150, 50), 25)a