local_lecuyer_cmrg_seed() seeds the L'Ecuyer-CMRG RNG with a scalar integer
via base::set.seed(), restoring the previous state when .local_envir
exits. with_lecuyer_cmrg_seed() evaluates code with that seed in effect,
then restores the previous state. For a .Random.seed-style state vector
(e.g. from get_lecuyer_cmrg_stream_state() or parallel::nextRNGStream())
use local_lecuyer_cmrg_state() / with_lecuyer_cmrg_state().
Usage
local_lecuyer_cmrg_seed(seed, .local_envir = parent.frame())
with_lecuyer_cmrg_seed(seed, code)