R: Test the random number generator

random.number.test {setRNG} | R Documentation

## Test the random number generator

### Description

Test the random number generator.

### Usage

        random.number.test()

### Arguments

None

### Details

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.

### Value

logical

### Side Effects

Executes `stop()` if the tests fail.

### See Also

`set.seed` `RNGkind` `runif` `rnorm` `setRNG`

### Examples

      random.number.test()

[Package setRNG version 2013.9-1 Index]