Skip to contents

With L'Euyer-CMRG Seed

Usage

with_lecuyer_cmrg_seed(seed, code)

Arguments

seed

[integer(1)]
The random seed to use to evaluate the code.

code

[any]
Code to execute in the temporary environment

Examples


with_lecuyer_cmrg_seed(42, {
runif(3)
})
#> [1] 0.1738456 0.5547401 0.4833771