Lower bound (a < b)
Upper bound (b > a)
Cumulative distribution function (CDF).
Value at which to evaluate the CDF
CDF at x
Mean of the distribution.
(a + b) / 2
Probability density function (PDF).
Value at which to evaluate the PDF
PDF at x
Generate a random sample from the distribution.
A number in [a, b]
Variance of the distribution.
(b - a)^2 / 12
Class representing the continuous uniform distribution over [a, b]. The PDF is constant over the interval and zero elsewhere.