Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/initRandomSeed.R
This routine will initialize .Random.seed
to the desired
seed, continue the current seed, or if none exists, set via the clock time.
1 | initRandomSeed(startSeed = NA, runQuiet = TRUE, ...)
|
startSeed |
|
runQuiet |
|
... |
Not used, for gobbling arguments only. |
The default uniform RNG in R is“Mersenne-Twister” which produces a ‘seed set’ when initialized. This seed set seems to be initialized to postion 624 so that the next draw will change the seed set (and hence the position to 1). Subsequently it will take 624 more draws to change the seed set, to a new one &c. So what is returned by default from this function is a vector of length 626.
The newly set seed or current seed invisibly.
Jeffrey H. Gove
1 2 3 4 5 6 7 | ## Not run:
initRandomSeed()
initRandomSeed(12)
rm(.Random.seed)
initRandomSeed(NULL)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.