Next: robust() Up: MacAnova Help File Previous: rft()   Contents


rnorm(n), n a positive integer

Keywords: random numbers
rnorm(N) generates a vector of N pseudo-random normals with mean 0 and
variance 1.  N must be a positive integer.

If the random number generator has not been initialized by setseeds(),
setoptions() or previous use of rbin(), rnorm(), rpoi() or runi(), the
generator's "seeds" will be initialized automatically using the current
time and date, and their values will be printed out.

To generate a pseudo random sample from the normal distribution with
mean mu and standard deviation sigma do the following.
  Cmd> y <- mu + sigma*rnorm(N) # sigma > 0 and mu REAL scalars

See also topics setseeds(), getseeds(), setoptions(), rbin(), rpoi(),
runi(), cumnor() and invnor(), subtopic 'options:"seeds"'.

Gary Oehlert 2003-01-15