C# Class Encog.MathUtil.Randomize.RangeRandomizer

Inheritance: BasicRandomizer
Mostrar archivo Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
RandomInt ( int min, int max ) : int

Produce a random int, within a specified range.

Randomize ( double d ) : double

Generate a random number based on the range specified in the constructor.

Randomize ( double min, double max ) : double

Generate a random number in the specified range.

RangeRandomizer ( double min, double max )

Construct a range randomizer.

Method Details

RandomInt() public static method

Produce a random int, within a specified range.
public static RandomInt ( int min, int max ) : int
min int The minimum value.
max int The maximum value.
return int

Randomize() public method

Generate a random number based on the range specified in the constructor.
public Randomize ( double d ) : double
d double The range randomizer ignores this value.
return double

Randomize() public static method

Generate a random number in the specified range.
public static Randomize ( double min, double max ) : double
min double The minimum value.
max double The maximum value.
return double

RangeRandomizer() public method

Construct a range randomizer.
public RangeRandomizer ( double min, double max )
min double The minimum random value.
max double The maximum random value.