Table of Contents

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 float

The mean of the distribution. Values generated will be centered around this point.

standardDeviation float

The standard deviation of the distribution. The bigger this value, the flatter the distribution curve will be.

Returns

IGenerator<float>

A new generator.