Class MersenneTwister

    • Constructor Detail

      • MersenneTwister

        public MersenneTwister​(long seed)
      • MersenneTwister

        public MersenneTwister()
    • Method Detail

      • nextDouble

        public double nextDouble()
        Returns the next random number in the sequence.
        Specified by:
        nextDouble in interface RandomNumberGenerator1D
        Returns:
        The next random number in the sequence.
      • nextDoubleFast

        public double nextDoubleFast()
        Description copied from interface: RandomNumberGenerator1D
        Possibly faster, non-thread safe implementation returning the next double value of this random number generator. The user of this method has to ensure synchronization if this generator is shared by different threads.
        Specified by:
        nextDoubleFast in interface RandomNumberGenerator1D
        Returns:
        The next double value of this random number generator