Description Usage Arguments Details Value Side Effects See Also Examples
Test the random number generator.
1 2 |
None
This function checks that the
RNG is working properly and has not been changed. If the RNG does not return
values as in previous versions of R then the function executes
stop()
. Since changes to the RNG will cause comparisons of
simulation results to fail, this is a useful check before investigating more
complicated problems that may be a result of other "improvements" in your
simulation or estimation programs.
logical
Executes stop()
if the tests fail.
set.seed
RNGkind
runif
rnorm
setRNG
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.