Skip to content

DiscreteUniformDistribution

DiscreteUniformDistribution({min, max})

returns a discrete uniform distribution.

See:

Examples

The variance of the discrete uniform distribution is

>> Variance(DiscreteUniformDistribution({l, r}))
1/12*(-1+(1-l+r)^2)

CDF, Mean, Median, PDF, Quantile, StandardDeviation, Variance

Implementation status

  • ✅ - full supported

Github