mt19937¶
Mersenne Twister engine is a random number engine based on Mersenne Twister algorithm. More specifically, it is a Mersenne Twister pseudorandom number generator with period \(2^{19937}-1\) [Matsumoto98].
Subsequence selection methods support
- skipAhead (nskip)
 Supported
- leapfrog (threadIdx, nThreads)
 Not supported
Batch Processing¶
Mersenne Twister engine needs the initial condition (seed) for state initialization.
The seed can be either an integer scalar or a vector of \(p\) integer elements, the inputs to the respective engine constructors.
Algorithm Parameters
Mersenne Twister engine has the following parameters:
Parameter  | 
Default Value  | 
Description  | 
|---|---|---|
  | 
  | 
The floating-point type that the algorithm uses for intermediate computations. Can be   | 
  | 
  | 
Performance-oriented computation method; the only method supported by the algorithm.  | 
  | 
  | 
Initial condition for state initialization, scalar or vector: 
  |