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