Class MersenneTwister
Inheritance
System.Object
MersenneTwister
Assembly: Mt19937ar.dll
Syntax
public class MersenneTwister : Object
Constructors
MersenneTwister()
Declaration
MersenneTwister(UInt32)
Declaration
public MersenneTwister(uint seed)
Parameters
Type |
Name |
Description |
System.UInt32 |
seed |
|
MersenneTwister(UInt32[])
Declaration
public MersenneTwister(uint[] key)
Parameters
Type |
Name |
Description |
System.UInt32[] |
key |
|
Methods
GenrandReal1()
Declaration
public double GenrandReal1()
Returns
Type |
Description |
System.Double |
|
GenrandReal2()
Declaration
public double GenrandReal2()
Returns
Type |
Description |
System.Double |
|
GenrandReal3()
Declaration
public double GenrandReal3()
Returns
Type |
Description |
System.Double |
|
GenrandRes53()
Declaration
public double GenrandRes53()
Returns
Type |
Description |
System.Double |
|
GenrandUint31()
Declaration
public uint GenrandUint31()
Returns
Type |
Description |
System.UInt32 |
|
GenrandUint32()
Declaration
public uint GenrandUint32()
Returns
Type |
Description |
System.UInt32 |
|
SetSeed(UInt32)
Declaration
public void SetSeed(uint seed)
Parameters
Type |
Name |
Description |
System.UInt32 |
seed |
|
SetSeed(UInt32[])
Declaration
public void SetSeed(uint[] key)
Parameters
Type |
Name |
Description |
System.UInt32[] |
key |
|