Congruential methods

Calculator on this site is for learning

Multiplicative method

Is a type of linear congruential generator for generating pseudorandom numbers in a specific range. This method can be defined as:

where,

m, a, and X0 should be chosen appropriately to get a period almost equal to m.

Calculator