The multiplier for a linear congruential random number generator.
Namespace:
Imsl.Stat
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public long Multiplier { get; set; } |
Visual Basic (Declaration) |
---|
Public Property Multiplier As Long |
Visual C++ |
---|
public: property long long Multiplier { long long get (); void set (long long value); } |
Field 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
See Donald Knuth, The Art of Computer Programming, Volume 2, for guidelines in choosing a multiplier. Some possible values are 16807, 397204094, 950706376.