Give regularly spaced points on interval \([-c,c]\) with mean 0
(exactly) and variance about 1 (very close for evenn
and larger round.dig). Note that \(c\) depends on n.
Usage
unif(n, round.dig = 1 + trunc(log10(n)))
Arguments
n
positive integer specifying the number of points desired.
round.dig
integer indicating to how many digits the result is
rounded.
Value
numeric vector of length n, symmetric around 0, hence
with exact mean 0, and variance approximately 1.