Documentation of 'org.encog.mathutil.randomize.generate.MultiplyWithCarryGenerateRandom' Java class
MultiplyWithCarryGenerateRandom
org.encog.mathutil.randomize.generate

Class MultiplyWithCarryGenerateRandom

  • All Implemented Interfaces:
    GenerateRandom


    public class MultiplyWithCarryGenerateRandom
    extends AbstractBoxMuller
    In Multiply with Carry (MWC) is a pseudo random number generator computer science, multiply-with-carry (MWC) is a method invented by George Marsaglia for generating sequences of random integers based on an initial set from two to many thousands of randomly chosen seed values. The main advantages of the MWC method are that it invokes simple computer integer arithmetic and leads to very fast generation of sequences of random numbers with immense periods. This class was implemented using information from the following sources:
    See Also:
    ,
    • Constructor Detail

      • MultiplyWithCarryGenerateRandom

        public MultiplyWithCarryGenerateRandom(long seed)
      • MultiplyWithCarryGenerateRandom

        public MultiplyWithCarryGenerateRandom()
      • MultiplyWithCarryGenerateRandom

        public MultiplyWithCarryGenerateRandom(long[] seeds,
                                               long carry,
                                               int r,
                                               long multiplier)
    • Method Detail

      • nextDouble

        public double nextDouble()
        Returns:
        The next random double.
      • nextLong

        public long nextLong()
        Returns:
        The next random long.
      • nextBoolean

        public boolean nextBoolean()
        Returns:
        The next random boolean.
      • nextFloat

        public float nextFloat()
        Returns:
        The next random floating point.
      • nextInt

        public int nextInt()
        Returns:
        The next random integer.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.