seed_rng: Seed the random number generator of the C++ routines.

Description Usage Arguments Details Value Examples

View source: R/RcppExports.R

Description

A Mersenne Twister pseudo-random generator of 32-bit numbers with a state size of 10037 bits is used in the underlying C++ routines.

Usage

1
seed_rng(seed = NULL)

Arguments

seed

Integer. If NULL, a random seed is used.

Details

The state of the random number generator used by the C++ routines is not shared with the R session from which these routines are interfaced.

Value

Integer. The seed used.

Examples

1
2
Meiosis::seed_rng(123L)
the_seed <- Meiosis::seed_rng()

Meiosis documentation built on May 29, 2017, 3:46 p.m.