This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/Uniform.html
Uniform {base}R Documentation

The Uniform Distribution

Description

These functions provide information about the uniform distribution on the interval from min to max. dunif gives the density, punif gives the distribution function qunif gives the quantile function and runif generates random deviates.

If min or max are not specified they assume the default values of 0 and 1 respectively.

The uniform distribution has density

f(x) = \frac{1}{max-min}

for min \le x \le max.

Usage

dunif(x, min=0, max=1)
punif(q, min=0, max=1)
qunif(p, min=0, max=1)
runif(n, min=0, max=1)

See Also

.Random.seed, rnorm, ....

Examples

var(runif(10000))#- ~ = 1/12 = .08333

[Package base version 0.60 ]