.. _method-bayes_calibration-queso-rng: """ rng """ Selection of a random number generator .. toctree:: :hidden: :maxdepth: 1 method-bayes_calibration-queso-rng-mt19937 method-bayes_calibration-queso-rng-rnum2 **Specification** - *Alias:* None - *Arguments:* None - *JSON argument key:* None **Child Keywords:** +-------------------------+------------------------+--------------------+--------------------------------+------------------------------------------------------------+ | Required/Optional | Description of Group | JSON Group Key | Dakota Keyword | Dakota Keyword Description | +=========================+========================+====================+================================+============================================================+ | Optional | | | `mt19937`__ | Generates random numbers using the Mersenne twister | +-------------------------+------------------------+--------------------+--------------------------------+------------------------------------------------------------+ | Optional | | | `rnum2`__ | Generates pseudo-random numbers using the Pecos package | +-------------------------+------------------------+--------------------+--------------------------------+------------------------------------------------------------+ .. __: method-bayes_calibration-queso-rng-mt19937.html __ method-bayes_calibration-queso-rng-rnum2.html **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** .. tab:: Freeform .. code-block:: dakota method sampling sample_type lhs samples = 10 seed = 98765 rng rnum2 .. tab:: JSON .. code-block:: json { "method": [ { "sampling": { "sample_type": {"lhs": true}, "samples": 10, "seed": 98765, "rng": {"rnum2": true} } } ] }