Random number generator:
Function rnorm, dnorm, pnorm, qnorm. Dnorm gives the density, 'pnorm' gives the distribution function, 'qnorm' gives the quantile function, and 'rnorm' generates random deviates.
> a<-rnorm(1000, 5, 1) ## get 1000 samples from normal distribution, means 5 and stan deviation 1. > hist(a, nclass=30) > pnorm(1.96) > qnorm(0.975)
other functions:
Rnorm, runif, rt, rchisq, rexp, rweibull, rbeta, rgamma