set.resolution {rngwell19937}R Documentation

Set the resolution of the output numbers

Description

By resolution, we mean the number of random bits in the output numbers. The function allows to choose between resolution 53 and 32 bits.

Usage

  set.resolution(resolution)

Arguments

resolution The required number of bits. Should be 53 or 32.

Details

The new setting of the resolution is valid for the next calls to runif().

Resolution 53 bits requires two iterations of the internal generator and their outputs are combined to a single number. Since an R call to runif() performs also other actions than only calling the generator itself, the slow down of 53 bit resolution compared to 32 bit resolution is about 20 percent.

Value

There is no output value.


[Package rngwell19937 version 0.5-3 Index]