Class GaussianDistribution

java.lang.Object
squidpony.squidmath.GaussianDistribution
All Implemented Interfaces:
IDistribution

public class GaussianDistribution
extends Object
implements IDistribution
An IDistribution that produces double results with a Gaussian (normal) distribution. This means it has no limits in any direction, but is much more likely to produce results close to 0. It uses the Ziggurat method, as published by Marsaglia and Tsang, 2000, in "The Ziggurat Method for Generating Random Variables"; pdf link. The code here is a port from the random number section of Go-Lang's experimental standard library.
Created by Tommy Ettinger on 11/23/2019, porting normal.go from https://github.com/golang/exp .