IMSL C# Numerical Library

Random.Multiplier Property

The multiplier for a linear congruential random number generator.

public long Multiplier {get; set;}

Property Value

A long which represents the random number generator multiplier.

Remarks

If not set, the multiplier has the value zero. If a multiplier is set then the linear congruential generator, defined in the base class System.Random, is replaced by the generator

seed = (multiplier*seed) mod (2^{31}-1)

See Donald Knuth, The Art of Computer Programming, Volume 2, for guidelines in choosing a multiplier. Some possible values are 16807, 397204094, 950706376.

See Also

Random Class | Imsl.Stat Namespace