rnorm generates a vector of normally distributed random numbers.
rnorm can take up to three arguments:
n: the number of random variables to generate
mean, if not specified defaults to 0.
sd: the standard deviation. If not specified, defaults to 1.
set.seed(…) can be used to set a seed for the random number generator.
# rnorm: the normal distribution
#
# see also -> sd() and -> var()
n <- rnorm(1000000, mean = 100, sd = 36)
x11();
hist(n, breaks = 51, col = "orange", main = "rnorm")
z <- locator(1) # wait for mouse click or enter pressed