Documentation API of the 'jhplot.math.num.random.LinearCongruentialRNG' Java class
LinearCongruentialRNG
jhplot.math.num.random

Class LinearCongruentialRNG

    • Constructor Detail

      • LinearCongruentialRNG

        public LinearCongruentialRNG(long m,                             long a)
        Create a linear congruential generator with the given modulus and multiplier. The shift is set to zero.
        Parameters:
        m - the modulus.
        a - the multiplier.
      • LinearCongruentialRNG

        public LinearCongruentialRNG(long m,                             long a,                             long c)
        Create a linear congruential generator with the given parameters.
        Parameters:
        m - the modulus.
        a - the multiplier.
        c - the shift.
      • LinearCongruentialRNG

        public LinearCongruentialRNG(long m,                             long a,                             long c,                             long s)
        Create a linear congruential generator with the given parameters.
        Parameters:
        m - the modulus.
        a - the multiplier.
        c - the shift.
        s - the seed.
    • Method Detail

      • nextRandomNumber

        public double nextRandomNumber()
        Access the next random number from this generator.
        Specified by:
        nextRandomNumber in interface RNG
        Returns:
        the next random number.

SCaVis 2.2 © jWork.ORG

Warning: You see this message because an access to the SCaVis documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To enable the description of all Java classes of SCaVis, please request the full SCaVis membership.

If you are already a full member, please login to the SCaVis member area before visiting this documentation.