Namespaces

Types

Type XorShiftRandomSource

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.
Parameters
return bool

void NextBytes(Byte[] buffer)

Parameters
Byte[] buffer

double NextDouble()

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

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.

int NextInclusiveMaxValue()

Returns a nonnegative random number less than or equal to MaxValue.
Parameters
return int

uint NextUInt()

Returns an unsigned random number.
Parameters
return uint

void Reset()

Resets the XorShiftRandomSource, 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 XorShiftRandomSource can be reset, so that it produces the same pseudo-random number sequence again.
return bool