.DESLib.RandomLib.Variates.initGeneratorWrap

Information

initGeneratorWrap

Initializes the random number generator (returning its components separately)

Syntax

initGeneratorWrap()

Description

Reads the value of the package seed, initializes the Generator and updates the package seed.
This function can be used if the components of the CMRG generator are declared using independent variables, instead of a record.

Examples

(g.Cg1,g.Cg2,g.Cg3,g.Cg4,g.Cg5,g.Cg6,
g.Bg1,g.Bg2,g.Bg3,g.Bg4,g.Bg5,g.Bg6
g.Ig1,g.Ig2,g.Ig3,g.Ig4,g.Ig5,g.Ig6
g.Anti,g.IncPrec) := Variates.initGeneratorWrap();

Interface

function initGeneratorWrap
  output Real Cg1;
  output Real Cg2;
  output Real Cg3;
  output Real Cg4;
  output Real Cg5;
  output Real Cg6;
  output Real Bg1;
  output Real Bg2;
  output Real Bg3;
  output Real Bg4;
  output Real Bg5;
  output Real Bg6;
  output Real Ig1;
  output Real Ig2;
  output Real Ig3;
  output Real Ig4;
  output Real Ig5;
  output Real Ig6;
  output Integer Anti;
  output Integer IncPrec;
end initGeneratorWrap;

Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos