org.uncommons.maths.random
Class ContinuousUniformGenerator
java.lang.Object
org.uncommons.maths.random.ContinuousUniformGenerator
- All Implemented Interfaces:
- NumberGenerator<Double>
public class ContinuousUniformGenerator
- extends Object
- implements NumberGenerator<Double>
Continuous, uniformly distributed random sequence. Generates
values in the range mininum (inclusive) ... maximum (exclusive).
- Author:
- Daniel Dyer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContinuousUniformGenerator
public ContinuousUniformGenerator(double minimumValue,
double maximumValue,
Random rng)
nextValue
public Double nextValue()
-
- Specified by:
nextValue
in interface NumberGenerator<Double>
- Returns:
- The next value from the generator.