setSeed {smmR} | R Documentation |
Set the RNG Seed from within Rcpp
Description
Set the RNG Seed from within Rcpp
Usage
setSeed(seed)
Arguments
seed |
An |
Value
A set RNG scope.
Examples
set.seed(10)
x <- rnorm(5, 0, 1)
setSeed(10)
y <- rnorm(5, 0, 1)
all.equal(x, y, check.attributes = FALSE)
[Package smmR version 1.0.3 Index]