\Header{Uniform}{The Uniform Distribution}
\alias{dunif}{Uniform}
\alias{punif}{Uniform}
\alias{qunif}{Uniform}
\alias{runif}{Uniform}
\keyword{distribution}{Uniform}
\begin{Usage}
\begin{verbatim}
dunif(x, min=0, max=1)
punif(q, min=0, max=1)
qunif(p, min=0, max=1)
runif(n, min=0, max=1)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{x,q}] vector of quantiles.
\item[\texttt{p}] vector of probabilities.
\item[\texttt{n}] number of observations to generate.
\item[\texttt{min,max}] lower and upper limits of the distribution.
\end{ldescription}
\end{Arguments}
\begin{Description}
These functions provide information about the uniform distribution
on the interval from \texttt{min} to \texttt{max}.  \texttt{dunif} gives the
density, \texttt{punif} gives the distribution function \texttt{qunif}
gives the quantile function and \texttt{runif} generates random
deviates.\end{Description}
\begin{SeeAlso}
\texttt{\Link{.Random.seed}} about random number generation,
\texttt{\Link{rnorm}}, etc for other distributions.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
u <- runif(20)
all(punif(u) == u) # T
all(dunif(u) == 1) # T

var(runif(10000))#- ~ = 1/12 = .08333
all(runif(100, 2,2) == 2)#-> TRUE [exhibits bug in R version <= 0.63.1]
\end{ExampleCode}
\end{Examples}

