Random Numbers and Sampling in R

Distribution Random number
generator
Distribution
Density function
Cumulative
function
Flat runif() dunif() punif()
Gaussian rnorm() dnorm() pnorm()
Poisson rpois() dpois() ppois()
Binomial rbinom() dbinom() pbinom()
Beta rbeta() dbeta() pbeta()
Gamma rgamma() dgamma() pgamma()
sample( x[], n, replace=F )
randomly sample n values from x[] with or without replacement depending on the value of replace