public interface NormalizedDoubleRandomGenerator extends DoubleRandomGenerator
This interface introduces additional semantics to the DoubleRandomGenerator
one.
It is designed for generators which value is contained in the range [0, 1), i.e. lowerDouble()
should return 0 and upperDouble()
should return 1, and nextDouble()
is guaranteed to be in the range [0, 1).
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 [0, 1).
|
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 [0, 1).
nextDouble
in interface DoubleRandomGenerator
double lowerDouble()
DoubleRandomGenerator
Specifies the lower bound of the values that can be returned by nextDouble()
.
lowerDouble
in interface DoubleRandomGenerator
double upperDouble()
DoubleRandomGenerator
Specifies the upper bound of the values that can be returned by nextDouble()
.
upperDouble
in interface DoubleRandomGenerator