Method GaussianRandomFloat
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
GaussianRandomFloat(float, float)
Makes a generator that generates floats with a Gaussian distribution.
public static IGenerator<float> GaussianRandomFloat(float mean, float standardDeviation)
Parameters
mean
floatThe mean of the distribution. Values generated will be centered around this point.
standardDeviation
floatThe standard deviation of the distribution. The bigger this value, the flatter the distribution curve will be.
Returns
- IGenerator<float>
A new generator.