Namespaces

Types

Type SystemRandomSource

Namespace MathNet.Numerics.RandomSources

Parent RandomSource

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 (1 int) for future calls, so a new random number is only generated 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 zero.

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 SystemRandomSource, so that it produces the same pseudo-random number sequence again.

string ToString()

Parameters
return string

Public properties

bool CanReset get;

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