set.resolution: Set the resolution of the output numbers

Description Usage Arguments Details Value

View source: R/init.R

Description

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().

Usage

1
  set.resolution(resolution)

Arguments

resolution

Numeric, 53 or 32. The required number of bits.

Details

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.

Value

NULL invisibly.


rngwell19937 documentation built on May 2, 2019, 8:33 a.m.