R Under development (unstable) (2024-10-17 r87242 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(randtoolbox) Loading required package: rngWELL This is randtoolbox. For an overview, type 'help("randtoolbox")'. > > n <- 5 > > #produce the same outputs since the same seed is used > > setSeed(1234) > SFMT(n, mexp=607, usepset=FALSE) [1] 0.2785636 0.6671323 0.9002349 0.6269897 0.8938202 > setSeed(1234) > SFMT(n, mexp=607, usepset=FALSE) [1] 0.2785636 0.6671323 0.9002349 0.6269897 0.8938202 > > #only first call produce the same outputs since time machine is used otherwise > > setSeed(1234) > SFMT(n, mexp=607, usepset=FALSE) [1] 0.2785636 0.6671323 0.9002349 0.6269897 0.8938202 > SFMT(n, mexp=607, usepset=FALSE) [1] 0.1829521 0.1621171 0.7558640 0.8807900 0.2302715 > setSeed(1234) > SFMT(n, mexp=607, usepset=FALSE) [1] 0.2785636 0.6671323 0.9002349 0.6269897 0.8938202 > SFMT(n, mexp=607, usepset=FALSE) [1] 0.08576063 0.72216797 0.01263063 0.13563287 0.54415527 > > proc.time() user system elapsed 0.26 0.06 0.31