Namespaces

Types

Type RandomSource

Namespace MathNet.Numerics.RandomSources

Interfaces IContinuousGenerator

Methods

Properties

Public instance methods

bool Equals(object obj)

Parameters
return bool
object obj

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

bool NextBoolean()

Returns a random Boolean value.
Buffers 31 random bits for future calls, so the random number generator is only invoked once in every 31 calls.
Parameters
return bool

void NextBytes(Byte[] buffer)

Parameters
Byte[] buffer

double NextDouble(double maxValue)

Returns a nonnegative floating point random number less than the specified maximum.
Parameters
return double
double maxValue The exclusive upper bound of the random number to be generated. must be greater than or equal to 0.0.

double NextDouble(double minValue, double maxValue)

Returns a floating point random number within the specified range.
Parameters
return double
double minValue The inclusive lower bound of the random number to be generated. The range between and must be less than or equal toMaxValue
double maxValue The exclusive upper bound of the random number to be generated. must be greater than or equal to . The range between and must be less than or equal toMaxValue.

double NextDouble()

Returns a nonnegative floating point random number less than 1.0.
Parameters
return double

void Reset()

Resets the random number generator, so that it produces the same random number sequence again.

string ToString()

Parameters
return string

Public properties

bool CanReset get;

Gets a value indicating whether the random number generator can be reset, so that it produces the same random number sequence again.
return bool