Fast runif alternative

fastRunif(n, min = 0, max = 1, useDouble = FALSE)

Arguments

n

number of observations

min

lower limit of the distribution

max

upper limit of the distribution

useDouble

use float or double internally

Value

A numeric vector of random values

Details

Fast generation of uniformly distributed random values. The default is to use single precision, since not all devices support calculations using double precision.

See also