Namespaces

Types

Type SystemRandomExtensions

Namespace MathNet.Numerics.Random

This class implements extension methods for the System.Random class. The extension methods generate pseudo-random distributed numbers for types other than double and int32.

Methods

Public static methods

decimal NextDecimal(this Random rnd)

Returns a nonnegative decimal floating point random number less than 1.0.
Parameters
return decimal A decimal floating point number greater than or equal to 0.0, and less than 1.0; that is, the range of return values includes 0.0 but not 1.0.
Random rnd

int NextFullRangeInt32(this Random rnd)

Returns a random number of the full Int32 range.
Parameters
return int A 32-bit signed integer of the full range, including 0, negative numbers,MaxValue and MinValue.
Random rnd

long NextFullRangeInt64(this Random rnd)

Returns a random number of the full Int64 range.
Parameters
return long A 64-bit signed integer of the full range, including 0, negative numbers,MaxValue and MinValue.
Random rnd

long NextInt64(this Random rnd)

Returns a nonnegative random number less than MaxValue.
Parameters
return long A 64-bit signed integer greater than or equal to 0, and less than MaxValue; that is, the range of return values includes 0 but not Int64.MaxValue.
Random rnd