Uniform random numbers generator.

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

Syntax

C#
public class UniformGenerator : IRandomNumberGenerator

Remarks

The random numbers generator generates uniformly distributed numbers in the specified range - values are greater or equal to minimum range's value and less than maximum range's value.

The generator uses UniformOneGenerator generator to generate random numbers.

Sample usage:

CopyC#
// create instance of random generator
IRandomNumberGenerator generator = new UniformGenerator( new Range( 50, 100 ) );
// generate random number
float randomNumber = generator.Next( );

Inheritance Hierarchy

System..::.Object
  AForge.Math.Random..::.UniformGenerator

See Also