Get, set and restore the state of the random number generator state.
Source:R/random_seed.R
random_seed.RdGet, set and restore the state of the random number generator state.
Arguments
- seed
(
list()|integer(1))
Either an integer or the list returned gyget_random_seed().
Value
get_random_seed() returns a list with two components random_seed and rng_kind or NULL if no seed was set; set_random_seed() and restore_random_seed() do not return anything.
Details
These functions originate from the withr package.