functionSeed_MRG

Uses an MRG for seeding

Extends from Utilities.Interfaces.Seed (The basic interface for a seeding function).

Information

This function fills the initial state vector using the MRG random number generator.

Inputs

TypeNameDefaultDescription
Integerlocal_seed (from Seed)12345The local seed to be used for generating initial RNG states
Integerglobal_seed (from Seed)67890The global seed to be combined with the local seed
Realreal_seed (from Seed)1.234A Real value to use as a seed for continuous seeding
Integern (from Seed)33The number of initial state values to be generated
Integerafill(134775813, n)The multiplier for the linear congruential generator
Integerc1The increment for abstracting linear congruential generators
Integerm2147483629The modulus for the multiple recursive generator
IntegerknThe number times the MRG shall be applied to the initial state vector

Outputs

TypeNameDefaultDescription
Integer[n]states (from Seed)The generated initial states

Revisions

Developed 2014 at the DLR Institute of System Dynamics and Control