The mean and the standard deviation for the discrete uniform distribution: Suppose X is a discrete uniform random variable on the consecutive integers a, a + 1, a + 2, ..., b for a ≤ b. Then, the mean (μ) is given by μ = (b + a) / 2 and the variance (σ^2) is given by σ^2 = ((b - a + 1)^2 - 1) / 12.