set.resolution {rngwell19937}R Documentation

Set the resolution of the output numbers

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

  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.


[Package rngwell19937 version 0.6-0 Index]