.Modelica.Math.Random.Generators.Xorshift1024star.initialState

Information

Syntax

state = Xorshift1024star.initialState(localSeed, globalSeed);

Description

Generates an initial state vector for the Xorshift1024star random number generator (= xorshift1024* algorithm), from two Integer numbers given as input (arguments localSeed, globalSeed). Any Integer numbers can be given (including zero or negative number). The function returns a reasonable initial state vector with the following strategy:

The Xorshift64star random number generator is used to fill the internal state vector with 64 bit random numbers.

Example

  parameter Integer localSeed;
  parameter Integer globalSeed;
  Integer state[Xorshift1024star.nState];
initial equation
  state = initialState(localSeed, globalSeed);

See also

Random.Generators.Xorshift1024star.random.

Interface

function initialState
  extends Modelica.Icons.Function;
  input Integer localSeed "The local seed to be used for generating initial states";
  input Integer globalSeed "The global seed to be combined with the local seed";
  output Integer state[nState] "The generated initial states";
end initialState;

Revisions

Date Description
June 22, 2015
DLR logo Initial version implemented by A. Klöckner, F. v.d. Linden, D. Zimmer, M. Otter.
DLR Institute of System Dynamics and Control

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