Constructor and Description |
---|
VariateInterval(T min,
T max)
Constructs an interval random variate.
|
Modifier and Type | Method and Description |
---|---|
T |
value()
Returns a value (instance) of the random variate.
|
public VariateInterval(T min, T max)
min
- the lower bound of the interval.max
- the upper bound of the interval.java.lang.IllegalArgumentException
- (1) if min == null
or max == null
;
(2) if min and max have incompatible types;
(3) if min > max
;
(4) if the value type is unsupported.