MT Class

Definition

Line 8 of System.Base/Random.cm

Constructors & Destructor

public nothrow MT()

Member Functions

public nothrow uint GenRand()
public nothrow void Init(uint seed)
public void InitWithRandomSeed()
public inline nothrow bool Initialized()

Constants

public const uint lowerMask = 0x7fffffffu
public const int m = 397
public const uint matrixA = 0x9908b0dfu
public const int n = 624
public const uint upperMask = 0x80000000u

Member Variables

private bool initialized
private uint[2] mag
private uint[624] mt
private int mti

Constructor& Destructor Details

MT Constructor

public nothrow MT()

Definition
Line 15 of System.Base/Random.cm


Member Function Details

GenRand Member Function

public nothrow uint GenRand()

Definition
Line 38 of System.Base/Random.cm


Init Member Function

public nothrow void Init(uint seed)

Definition
Line 27 of System.Base/Random.cm


InitWithRandomSeed Member Function

public void InitWithRandomSeed()

Definition
Line 22 of System.Base/Random.cm


Initialized Member Function

public inline nothrow bool Initialized()

Definition
Line 18 of System.Base/Random.cm