Documentation of 'org.uncommons.maths.random.DiscreteUniformGenerator' Java class
DiscreteUniformGenerator
org.uncommons.maths.random

Class DiscreteUniformGenerator

  • All Implemented Interfaces:
    NumberGenerator<java.lang.Integer>


    public class DiscreteUniformGenerator
    extends java.lang.Object
    implements NumberGenerator<java.lang.Integer>
    Discrete, uniformly distributed random sequence. Generates values between the specified minimum and maximum values (inclusive).
    • Constructor Summary

      Constructors 
      Constructor and Description
      DiscreteUniformGenerator(int minimumValue, int maximumValue, java.util.Random rng) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Integer nextValue()
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DiscreteUniformGenerator

        public DiscreteUniformGenerator(int minimumValue,
                                        int maximumValue,
                                        java.util.Random rng)
    • Method Detail

      • nextValue

        public java.lang.Integer nextValue()
        Specified by:
        nextValue in interface NumberGenerator<java.lang.Integer>
        Returns:
        The next value from the generator.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.