GaussianRandom Class

Gaussian random number generator.

Definition

Namespace: KLib.Utilities
Assembly: KLib.Utilities (in KLib.Utilities.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public sealed class GaussianRandom
Inheritance
Object    GaussianRandom

Remarks

Based on code found on StackOverflow

Constructors

GaussianRandom Create GaussianRandom object.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Next Generates normally (Gaussian) distributed random numbers, using the Box-Muller transformation. This transformation takes two uniformly distributed deviates within the unit circle, and transforms them into two independently distributed normal deviates.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also