rngSetSeed: Seeding the Default RNG with a Numeric Vector

A function setVectorSeed() is provided. Its argument is a numeric vector of an arbitrary nonzero length, whose components have integer values from [0, 2^32-1]. The input vector is transformed using AES (Advanced Encryption Standard) algorithm into an initial state of Mersenne-Twister random number generator. The function provides a better alternative to the R base function set.seed(), if the input vector is a single integer. Initializing a stream of random numbers with a vector is a convenient way to obtain several streams, each of which is identified by several integer indices.

Author
Petr Savicky
Date of publication
2014-12-03 10:28:01
Maintainer
Petr Savicky <savicky@cs.cas.cz>
License
GPL-3
Version
0.3-2

View on CRAN

Man pages

generateInitialization
Generates a random integer vector of a specified length using...
rngSetSeed-package
Seeding the Default RNG with a Numeric Vector
setVectorSeed
Initialization of Mersenne-Twister RNG with a numeric vector...

Files in this package

rngSetSeed
rngSetSeed/tests
rngSetSeed/tests/compareToRScriptAES.R
rngSetSeed/tests/compareToStoredOutput.R
rngSetSeed/src
rngSetSeed/src/interface.c
rngSetSeed/src/aes.h
rngSetSeed/src/aes.c
rngSetSeed/NAMESPACE
rngSetSeed/R
rngSetSeed/R/functions.R
rngSetSeed/R/init.R
rngSetSeed/MD5
rngSetSeed/DESCRIPTION
rngSetSeed/ChangeLog
rngSetSeed/man
rngSetSeed/man/generateInitialization.Rd
rngSetSeed/man/rngSetSeed-package.Rd
rngSetSeed/man/setVectorSeed.Rd