View source: R/set_init_seed.R
set_init_seed | R Documentation |
Sets the RNG (random number generator) seed.
set_init_seed(seed_val)
seed_val |
One of the following:
|
The value of seed_val
(either user-supplied or set from
within the function), invisibly.
set.seed
, get_random_seed_val
## Not run: set_init_seed(1) # => Set seed to a specific value set_init_seed("random") # => Set seed to a randomly-generated value set_init_seed(NULL) # => Re-initialize seed as if none had yet been set set_init_seed(NA) # => Return immediately without changing seed ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.