Mt1993764 Class
A random number generator using the Mersenne Twister algorithm, variant MT19937-64. Based on the pseudocode provided from https://en.wikipedia.org/wiki/Mersenne_twister and the original C code at http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/VERSIONS/C-LANG/mt19937-64.c
Namespace
RandN.Rngs
Interfaces
Base Types
  • object
Mt1993764
object
IRng

Syntax

public sealed class Mt1993764 : IRng

Methods

NameReturn ValueSummary
Create(ulong)Mt1993764
Creates a new Mt1993764 using the specified seed.
static
Create(ulong[])Mt1993764
Creates a new Mt1993764 using the specified seed.
static
Fill(Span<byte>)void
Completely fills the span with random bytes.
GetFactory()Mt1993764.Factory
Gets the Mt1993764 factory.
static
NextUInt32()uint
Returns the next 32 bits in the sequence as a UInt32.
NextUInt64()ulong
Returns the next 64 bits in the sequence as a UInt64.

Extension Methods

NameValueSummary
ShuffleInPlace<Mt1993764, T>(IList<T>)void
Shuffles a list using the in-place Fisher-Yates shuffling algorithm.