Discrete Uniform

The probability mass function of the discrete uniform distribution is

\[  p(x) = \frac{1}{j - i + 1}  \]

for $x \in [i, i+1, \dots , j]$, where $i$ and $j$ are integers with $i \le j$.

Parameters:

$i$

is a location parameter.

$j - i$

is a scale parameter.