Sandia National Laboratories

# seed

Seed of the random number generator

Specification

- Alias: None

- Arguments: INTEGER

- Default: system-generated (non-repeatable)

Description

The random `seed` control provides a mechanism for making a stochastic method repeatable. That is, the use of the same random seed in identical studies will generate identical results.

Default Behavior

If not specified, the seed is randomly generated.

Expected Output

If `seed` is specified, a stochastic study will generate identical results when repeated using the same seed value. Otherwise, results are not guaranteed to be the same.

Usage Tips

If a stochastic study was run without `seed` specified, and the user later wishes to repeat the study using the same seed, the value of the seed used in the original study can be found in the output Dakota prints to the screen. That value can then be added to the Dakota input file.

Examples

    method
      sampling
        sample_type lhs
        samples = 10
        seed = 15347

## Exceptional service in the national interest

© 2023 National Technology and Engineering Solutions of Sandia, LLC. | Questions & Comments | Privacy & Security

Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering Solutions of Sandia, LLC., a wholly owned subsidiary of Honeywell International, Inc., for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-NA-0003525.