Skip to main content

randomGaussian

randomGaussian([quality], random) ⇒ number

Returns a random number within a normal distribution (Bell/Gaussian curve)

Kind: global function
Returns: number - value between 0 and 1 with normal weight at 0.5

ParamTypeDefaultDescription
[quality]int6controls number of "die rolls" used to approximate curve, more rolls - better approximation but higher cost of computation
randomfunction