.BG
.FN Uniform
.FN dunif
.FN punif
.FN qunif
.FN runif
.TL
Uniform Distribution
.CS
dunif(q, min=0, max=1)
punif(q, min=0, max=1)
qunif(p, min=0, max=1)
runif(n, min=0, max=1)
.AG q
vector of quantiles.
Missing values (`NA's) are allowed.
.AG p
vector of probabilities.
Missing values (`NA's) are allowed.
.AG n
sample size.
If `length(n)' is larger than 1, then `length(n)' random values are returned.
.AG min
vector of lower limits.
.AG max
vector of upper limits (greater than lower limits).
.RT
density (`dunif'),
probability (`punif'),
quantile (`qunif'), or
random sample (`runif')
for the uniform distribution on the range `min' to `max'.
.SP
.Tr
The density function is given by
.sp
.EQ
delim $$
f sub a,b ( q ) ~=~
1 over { b - a } , ~~~ a ~<=~ q ~<=~ b , ~~ b ~>~ a
.EN
.sp
where $a$ and $b$ are the `min' and `max' parameters.
.En
.SE
The function `runif' causes creation of the dataset `.Random.seed' if it does
not already exist, otherwise its value is updated.
.EX
x + runif(x)   # jitter the x data
runif(100,\-1,1) # 100 numbers uniform on \-1 to 1
.KW distribution
.EQ
delim off
.EN
.WR
