public interface DoubleRandomGenerator
An interface for generating random double values.
The contract of this interface is that values returned by nextDouble()
must be included between those returned by lowerDouble()
and upperDouble()
.
Apart from that, those values can follow an arbitrary distribution, i.e. does not have to be uniformly distributed.
Modifier and Type | Method and Description |
---|---|
double |
lowerDouble()
Specifies the lower bound of the values that can be returned by
nextDouble() . |
double |
nextDouble()
Returns a random double value arbitrarily distributed in the range
[lowerDouble(), upperDouble()] . |
double |
upperDouble()
Specifies the upper bound of the values that can be returned by
nextDouble() . |
double nextDouble()
Returns a random double value arbitrarily distributed in the range [lowerDouble(), upperDouble()]
.
double lowerDouble()
Specifies the lower bound of the values that can be returned by nextDouble()
.
double upperDouble()
Specifies the upper bound of the values that can be returned by nextDouble()
.