setSeed | R Documentation |
Set the RNG Seed from within Rcpp
setSeed(seed)
seed |
An |
A set RNG scope.
set.seed(10)
x <- rnorm(5, 0, 1)
setSeed(10)
y <- rnorm(5, 0, 1)
all.equal(x, y, check.attributes = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.