Search notes:
R function: set.seed
Use
set.seed
to create the same set of »random« numbers each time a script is invoked, for example
rnorm
[
rnorm(…)
.
set.seed(280870) runif(1) # [1] 0.3854506 # Always
Github repository
about-r
, path:
/functions/set.seed.R
See also
Random numbers (distribution)
Index to (some) R functions
Index