C# Class Accord.Math.Random.StandardGenerator

Inheritance: IRandomNumberGenerator
ファイルを表示 Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Next ( ) : float

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.

StandardGenerator ( ) : System

Initializes a new instance of the StandardGenerator class.

StandardGenerator ( int seed ) : System

Initializes a new instance of the StandardGenerator class.

Method Details

Next() public method

Generate next random number.
public Next ( ) : float
return float

SetSeed() public method

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.
return void

StandardGenerator() public method

Initializes a new instance of the StandardGenerator class.
public StandardGenerator ( ) : System
return System

StandardGenerator() public method

Initializes a new instance of the StandardGenerator class.
public StandardGenerator ( int seed ) : System
seed int Seed value to initialize random numbers generator.
return System