1. Uniform distribution in interval [a,b]
> runif(n, min = a, max = b)
2. Normal distribution with mean u and standard deviation sigma
> rnorm(n, mean = u, sd = sigma)
Multivariate normal distribution
> library(MASS);
> mvrnorm(n, mu, Sigma);
3. Binomial distribution with size n and success probability prob
> rbinom(n, size, prob)
4. Poisson distribution with parameter lambda
> rpois(n, lambda)
5. t distribution with df degrees of freedom, and non-central parameter (by default 0)
> rt(n, df, ncp)
6. Sampling data from a list
> sample(x, size, replace = FALSE, prob = NULL)