Class Well19937a

    • Constructor Detail

      • Well19937a

        public Well19937a()
        Creates a new random number generator.

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

      • Well19937a

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

        public Well19937a​(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
      • Well19937a

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