Class PMMLCG

  • All Implemented Interfaces:
    java.util.function.DoubleSupplier, GetAntitheticValueIfc, RandU01Ifc

    public class PMMLCG
    extends java.lang.Object
    implements RandU01Ifc
    Random is a PMMLCG generator that returns a pseudo-random real number uniformly distributed between 0.0 and 1.0. The period is (m - 1) where m = 2,147,483,647 and the smallest and largest possible values are (1 / m) and 1 - (1 / m) respectively.
    • Constructor Detail

      • PMMLCG

        public PMMLCG()
      • PMMLCG

        public PMMLCG​(long seed)
    • Method Detail

      • getDefaultSeed

        public final long getDefaultSeed()
      • 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 double getPrevU01()
        Description copied from interface: RandU01Ifc
        The previous U(0,1) generated (returned) by randU01()
        Specified by:
        getPrevU01 in interface RandU01Ifc
        Returns:
        previous U(0,1) generated (returned) by randU01()
      • setSeed

        public final void setSeed​(long seed)
      • getSeed

        public final long getSeed()
      • main

        public static void main​(java.lang.String[] args)