Uniform random numbers generator in the range of [0, 1).

Namespace:  AForge.Math.Random
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public class UniformOneGenerator : IRandomNumberGenerator

Remarks

The random number generator generates uniformly distributed numbers in the range of [0, 1) - greater or equal to 0.0 and less than 1.0.

Note:At this point the generator is based on the internal .NET generator, but may be rewritten to use faster generation algorithm.

Sample usage:

CopyC#
// create instance of random generator
IRandomNumberGenerator generator = new UniformOneGenerator( );
// generate random number
float randomNumber = generator.Next( );

Inheritance Hierarchy

System..::.Object
  AForge.Math.Random..::.UniformOneGenerator

See Also