Invalid parameter values will return an error detailing which parameter is problematic.
Details
The (discrete) uniform distribution with min and max parameters \(a\)
and \(b\) respectively has density:
$$\textrm{Pr}\left(X = x \right) = \frac{1}{b - a + 1}$$
for \(x \in \{a, a + 1, \dots, b - 1, b\}\).