normal
// usage
randBox.normal()
randBox.normal({mean: 100})
randBox.normal({mean: 100, dev: 15})Return a normally-distributed random variate.
randBox.normal()
=> 0.4244767651300604By default this starts with a mean of 0 and a standard deviation of 1 which
is the standard normal distribution.
Optionally specify a mean and/or deviation.
// Notice, since no deviation was specified, using the default of `1`
randBox.normal({mean: 100})
=> 99.68352269988522
// For example, to get a random IQ (which by definition has a mean of 100
// and a standard deviation of 15)
randBox.normal({mean: 100, dev: 15})
=> 85.11040121833615Used in combination with the above generators, this can be an extremely powerful way to get more realistic results as often “pure random” results fail to approximate the real world.