C# 클래스 AForge.Math.Random.UniformGenerator

Uniform random numbers generator.

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:

// create instance of random generator IRandomNumberGenerator generator = new UniformGenerator( new Range( 50, 100 ) ); // generate random number float randomNumber = generator.Next( );
상속: IRandomNumberGenerator
파일 보기 프로젝트 열기: atosorigin/Kinect 1 사용 예제들

공개 메소드들

메소드 설명
Next ( ) : double

Generate next random number.

SetSeed ( int seed ) : void

Set seed of the random numbers generator.

Resets random numbers generator initializing it with specified seed value.

UniformGenerator ( DoubleRange range )

Initializes a new instance of the UniformGenerator class.

Initializes random numbers generator with zero seed.

UniformGenerator ( DoubleRange range, int seed )

Initializes a new instance of the UniformGenerator class.

메소드 상세

Next() 공개 메소드

Generate next random number.
public Next ( ) : double
리턴 double

SetSeed() 공개 메소드

Set seed of the random numbers generator.
Resets random numbers generator initializing it with specified seed value.
public SetSeed ( int seed ) : void
seed int Seed value.
리턴 void

UniformGenerator() 공개 메소드

Initializes a new instance of the UniformGenerator class.
Initializes random numbers generator with zero seed.
public UniformGenerator ( DoubleRange range )
range AForge.DoubleRange Random numbers range.

UniformGenerator() 공개 메소드

Initializes a new instance of the UniformGenerator class.
public UniformGenerator ( DoubleRange range, int seed )
range AForge.DoubleRange Random numbers range.
seed int Seed value to initialize random numbers generator.