Options
All
  • Public
  • Public/Protected
  • All
Menu

Uniform random number generator

Mersenne Twister random number generator of period 2**19937-1

For more details see http://www.math.keio.ac.jp/matumoto/emt.html

test correctness of the returned values is tested by checking them against known good results.

Hierarchy

  • MersenneTwisterUniformRng

Implements

Index

Properties

Private mt

mt: Uint32Array = new Uint32Array(N)

Private mti

mti: Size

Methods

init1

init2

next

  • Returns Sample<Real>

nextInt32

  • return a random integer in the [0,0xffffffff]-interval

    Returns Integer

nextReal

  • Returns Real

Private seedInitialization

  • seedInitialization(seed: Integer): void
  • Parameters

    Returns void

Private twist

  • twist(): void
  • Returns void