Class JavaRNG

    • Constructor Summary

      Constructors 
      Constructor Description
      JavaRNG()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getAntitheticValue()
      Returns the antithetic of the previous U(0,1) i.e.
      double getPrevU01()
      The previous U(0,1) generated (returned) by randU01()
      double randU01()
      Returns a pseudo-random uniformly distributed number
      • Methods inherited from class java.util.Random

        doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed
      • Methods inherited from class java.lang.Object

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

      • JavaRNG

        public JavaRNG()
    • Method Detail

      • randU01

        public double randU01()
        Description copied from interface: RandU01Ifc
        Returns a pseudo-random uniformly distributed number
        Specified by:
        randU01 in interface RandU01Ifc
        Returns:
        the random number
      • getPrevU01

        public final double getPrevU01()
        The previous U(0,1) generated (returned) by randU01()
        Specified by:
        getPrevU01 in interface RandU01Ifc
        Returns:
      • getAntitheticValue

        public final double getAntitheticValue()
        Returns the antithetic of the previous U(0,1) i.e. 1.0 - getPrevU01()
        Specified by:
        getAntitheticValue in interface GetAntitheticValueIfc
        Returns: