This function fills the initial state vector using the MRG random number generator.
function Seed_MRG extends Utilities.Interfaces.Seed; input Integer[:] a = fill(134775813, n) "The multiplier for the linear congruential generator" annotation( Dialog); input Integer c = 1 "The increment for abstracting linear congruential generators" annotation( Dialog); input Integer m = 2147483629 "The modulus for the multiple recursive generator" annotation( Dialog); input Integer k = n "The number times the MRG shall be applied to the initial state vector"; end Seed_MRG;
Developed 2014 at the DLR Institute of System Dynamics and Control