.Noise.RNG.SampleBased.RNG_MRG

Information

Multiple recursive generator implementing the equation i = mod( sum(a*i) + c, m)

Interface

function RNG_MRG
  extends Noise.Utilities.Interfaces.SampleBasedRNG;
  input Integer[:] a = {1071064, 0, 0, 0, 0, 0, 2113664} "The multiplier for the linear congruential generator" annotation(
    Dialog);
  input Integer c = 0 "The increment for abstracting linear congruential generators" annotation(
    Dialog);
  input Integer m = 2147483629 "The modulus for the multiple recursive generator" annotation(
    Dialog);
end RNG_MRG;

Revisions

Developed 2014 at the DLR Institute of System Dynamics and Control


Generated at 2024-07-26T18:16:02Z by OpenModelicaOpenModelica 1.23.1 using GenerateDoc.mos