dunif(x, min=0, max=1) punif(q, min=0, max=1) qunif(p, min=0, max=1) runif(n, min=0, max=1)
x,q
| vector of quantiles. |
p
| vector of probabilities. |
n
| number of observations to generate. |
min,max
| lower and upper limits of the distribution. |
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) = 1/(max-min)
for min <= x <= max..Random.seed about random number generation,
rnorm, etc for other distributions.var(runif(10000))#- ~ = 1/12 = .08333