set.resolution {rngwell19937} | R Documentation |
The function allows to choose between resolution 53 and 32 bits.
The resolution is the number of random bits in the numbers
produced by runif()
.
set.resolution(resolution)
resolution |
Numeric, 53 or 32. The required number of bits. |
The new setting of the resolution is valid for the next calls to runif()
.
Generating a random number with the resolution 53 requires two iterations
of the internal 32 bit generator and
their outputs are combined to a single number. The slow down of 53 bit
resolution compared to 32 bit resolution is about 20 percent, since
an R call to runif()
performs also other actions besides calling
the internal generator and these actions are run only once.
NULL
invisibly.