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
Syntax
public sealed class Mt1993764 : IRng
Methods
Name | Return Value | Summary |
---|---|---|
Create | Mt1993764 | Creates a new Mt1993764 using the specified seed.static |
Create | Mt1993764 | Creates a new Mt1993764 using the specified seed.static |
Fill | void | Completely fills the span with random bytes. |
GetFactory | Mt1993764 | 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
Name | Value | Summary |
---|---|---|
ShuffleInPlace | void | Shuffles a list using the in-place Fisher-Yates shuffling algorithm. From RngExtensions |