Documentation of 'edu.rit.numeric.DoublePrng' Java class
DoublePrng
edu.rit.numeric

Class DoublePrng

  • Direct Known Subclasses:
    ExponentialPrng, NormalPrng, UniformPrng


    public abstract class DoublePrng
    extends java.lang.Object
    Class DoublePrng is the abstract base class for a pseudorandom number generator (PRNG) that generates random numbers of type double. The generated random numbers' probability distribution is determined by the subclass.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DoublePrng(Random theUniformPrng)
      Construct a new double PRNG.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      abstract double next()
      Returns the next random number.
      • Methods inherited from class java.lang.Object

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

      • DoublePrng

        public DoublePrng(Random theUniformPrng)
        Construct a new double PRNG.
        Parameters:
        theUniformPrng - The underlying uniform PRNG.
        Throws:
        java.lang.NullPointerException - (unchecked exception) Thrown if theUniformPrng is null.
    • Method Detail

      • next

        public abstract double next()
        Returns the next random number.
        Returns:
        Random number.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.