Uncommons Maths API
(Version 1.2.3)

org.uncommons.maths.random
Class DiscreteUniformGenerator

java.lang.Object
  extended by 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

Constructor Summary
DiscreteUniformGenerator(int minimumValue, int maximumValue, Random rng)
           
 
Method Summary
 Integer nextValue()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscreteUniformGenerator

public DiscreteUniformGenerator(int minimumValue,
                                int maximumValue,
                                Random rng)
Method Detail

nextValue

public Integer nextValue()

Specified by:
nextValue in interface NumberGenerator<Integer>
Returns:
The next value from the generator.

Uncommons Maths API
(Version 1.2.3)