Class AbstractDiscreteDistribution

    • Constructor Detail

      • AbstractDiscreteDistribution

        protected AbstractDiscreteDistribution()
        Makes this class non instantiable, but still let's others inherit from it.
    • Method Detail

      • nextDouble

        public double nextDouble()
        Returns a random number from the distribution; returns (double) nextInt().
        Specified by:
        nextDouble in class AbstractDistribution
      • nextInt

        public abstract int nextInt()
        Returns a random number from the distribution.
        Overrides:
        nextInt in class AbstractDistribution