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

## Class LinearCongruentialRNG

• All Implemented Interfaces:
RNG

`public class LinearCongruentialRNGextends Objectimplements RNG`

A general linear congruential generator.

References:

1. Wikipedia contributors, "Linear congruential generator," Wikipedia, The Free Encyclopedia, http://en.wikipedia.org/wiki/Linear_congruential_generator

• ### Constructor Summary

Constructors
Constructor and Description
`LinearCongruentialRNG(long m, long a)`
Create a linear congruential generator with the given modulus and multiplier.
`LinearCongruentialRNG(long m, long a, long c)`
Create a linear congruential generator with the given parameters.
`LinearCongruentialRNG(long m, long a, long c, long s)`
Create a linear congruential generator with the given parameters.
• ### Method Summary

All Methods
Modifier and TypeMethod and Description
`double``nextRandomNumber()`
Access the next random number from this generator.
• ### Methods inherited from class java.lang.Object

`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### 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.

DMelt 1.2 © DataMelt by jWork.ORG

LinearCongruentialRNG
jhplot.math.num.random

## Class LinearCongruentialRNG

• All Implemented Interfaces:
RNG

`public class LinearCongruentialRNGextends Objectimplements RNG`

A general linear congruential generator.

References:

1. Wikipedia contributors, "Linear congruential generator," Wikipedia, The Free Encyclopedia, http://en.wikipedia.org/wiki/Linear_congruential_generator

Warning: You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

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