Class Well19937c

All Implemented Interfaces:
Serializable, RandomGenerator

public class Well19937c extends AbstractWell
This class implements the WELL19937c pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.

This generator is described in a paper by François Panneton, Pierre L'Ecuyer and Makoto Matsumoto Improved Long-Period Generators Based on Linear Recurrences Modulo 2 ACM Transactions on Mathematical Software, 32, 1 (2006). The errata for the paper are in wellrng-errata.txt.

Since:
2.2
See Also:
  • Constructor Details

    • Well19937c

      public Well19937c()
      Creates a new random number generator.

      The instance is initialized using the current time as the seed.

    • Well19937c

      public Well19937c(int seed)
      Creates a new random number generator using a single int seed.
      Parameters:
      seed - the initial seed (32 bits integer)
    • Well19937c

      public Well19937c(int[] seed)
      Creates a new random number generator using an int array seed.
      Parameters:
      seed - the initial seed (32 bits integers array), if null the seed of the generator will be related to the current time
    • Well19937c

      public Well19937c(long seed)
      Creates a new random number generator using a single long seed.
      Parameters:
      seed - the initial seed (64 bits integer)