The continuous distribution on the interval (a, b) with probability density function f given by where a and b are constants. The distribution has mean (a+b) and variance (b−a)2.
The error when a decimal number is rounded to the nearest whole number has a uniform distribution on (−0.5, 0.5), with mean 0 and variance .