Fast rnorm alternative

fastRnorm(n, mean = 0, sd = 1, useDouble = FALSE)

Arguments

n

number of observations

mean

mean value of the distribution

sd

standard deviation of the distribution

useDouble

use float or double internally

Value

A numeric vector of random values

Details

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

See also