.Noise.RNG.SampleBased.RNG_LCG

Information

Linear congruential generator implementing the equation i = mod(a*i+c, m)

Interface

function RNG_LCG
  extends Noise.Utilities.Interfaces.SampleBasedRNG;
  input Integer a = 69069 "The multiplier for the linear congruential generator" annotation(
    Dialog);
  input Integer c = 1 "The increment for the linear congruential generator" annotation(
    Dialog);
  input Integer m = 2147483647 "The modulus for the linear congruential generator" annotation(
    Dialog);
end RNG_LCG;

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