Dakota Reference Manual  Version 6.4
Large-Scale Engineering Optimization and Uncertainty Analysis
 All Pages
rng


Selection of a random number generator

Specification

Alias: none

Argument(s): none

Default: Mersenne twister ( mt19937 )

Required/Optional Description of Group Dakota Keyword Dakota Keyword Description
Required
(Choose One)
Group 1 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