Functions > Statistics > Probability Distributions > Uniform Distribution
Uniform Distribution
The following functions are associated with the uniform equation:
dunif(x, a, b)—Returns the probability density for value x.
punif(x, a, b)—Returns the cumulative probability distribution for value x.
qunif(p, a, b)—Returns the inverse cumulative probability distribution for probability p.
runif(m, a, b)—Returns a vector of m random numbers having the uniform distribution.
rnd(x)—Returns a uniformly distributed random number between 0 and x.
Arguments
x is a scalar or vector of real values, a ≤ x ≤ b. To allow integration and other operations over this argument, values outside of the stated range are allowed, but they produce a 0 result.
a and b are real numbers, a < b.
p is a real probability, 0 ≤ p ≤ 1.
m is an integer, m > 0.
Was this helpful?