rng

Selection of a random number generator

Specification

  • Alias: None

  • Arguments: None

  • Default: Mersenne twister ( mt19937 )

Child Keywords:

Required/Optional

Description of Group

Dakota Keyword

Dakota Keyword Description

Required (Choose One)

RNG Algorithm

mt19937

Generates random numbers using the Mersenne twister

rnum2

Generates pseudo-random numbers using the Pecos package

Description

The rng keyword is used to indicate a choice of random number generator.

Default Behavior

If specified, the rng keyword must be accompanied by either rnum2 (pseudo-random numbers) or mt19937 (random numbers generated by the Mersenne twister). Otherwise, mt19937, the Mersenne twister is used by default.

Usage Tips

The default is recommended, as the Mersenne twister is a higher quality random number generator.

Examples

method
  sampling
    sample_type lhs
    samples = 10
    seed = 98765
    rng rnum2