T
- the type of the random variate values.public final class VariateInterval<T> extends java.lang.Object implements Variate<T>
T
-type random variate, where T
is an integer
type (Integer
, Long
or BigInteger
).Constructor and Description |
---|
VariateInterval(T min,
T max)
Constructs an interval random variate.
|
public VariateInterval(T min, T max)
min
- the lower bound of the interval.max
- the upper bound of the interval.java.lang.NullPointerException
- if min == null
or max == null
.java.lang.IllegalArgumentException
- (1) if min and max have different types,
(2) if min > max
or (3) if the value type is unsupported.