The OpenD Programming Language

MersenneTwisterEngine

The $(LUCKY Mersenne Twister) generator.

Constructors

this
this(UIntType value)

Constructs a MersenneTwisterEngine object.

this
this(const(UIntType)[] array)

Constructs a MersenneTwisterEngine object.

Postblit

A postblit is present on this object, but not explicitly documented in the source.

Members

Functions

opCall
UIntType opCall()

Advances the generator.

Manifest constants

isRandomEngine
enum isRandomEngine;

Variables

data
UIntType[n] data;

Reversed(!) payload.

defaultSeed
enum UIntType defaultSeed;

The default seed value.

index
size_t index;

Current reversed payload index with initial value equals to n-1

initializationMultiplier
enum UIntType initializationMultiplier;
maskBits
enum size_t maskBits;

Parameters for the generator.

max
enum UIntType max;

Largest generated value.

shiftSize
enum size_t shiftSize;
stateSize
enum size_t stateSize;
temperingB
enum UIntType temperingB;
temperingC
enum UIntType temperingC;
temperingD
enum UIntType temperingD;
temperingL
enum size_t temperingL;
temperingS
enum size_t temperingS;
temperingT
enum size_t temperingT;
temperingU
enum size_t temperingU;

Parameters for the generator.

wordSize
enum size_t wordSize;
xorMask
enum UIntType xorMask;

Parameters for the generator.

Meta