Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

Meiosis (version 1.0.2)

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

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

seed_rng(seed = NULL)

Arguments

seed
Integer. If NULL, a random seed is used.

Value

Integer. The seed 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.

Examples

Run this code
Meiosis::seed_rng(123L)
the_seed <- Meiosis::seed_rng()

Run the code above in your browser using DataLab