WOLFRAM SYSTEM MODELER
automaticGlobalSeedCreates an automatic integer seed (typically from the current time and process id; this is an impure function) |
SystemModel["Modelica.Math.Random.Utilities.automaticGlobalSeed"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
seed = Utilities.automaticGlobalSeed();
Returns an automatically computed seed (Integer). Typically, this seed is computed from:
If getTime and getPid functions are not available on the target where this Modelica function is called, other means to compute a seed may be used.
Note, this is an impure function that returns always a different value, when it is newly called. This function should be only called once during initialization.
parameter Boolean useAutomaticSeed = false; parameter Integer fixedSeed = 67867967; final parameter Integer seed = if useAutomaticSeed then Random.Utilities.automaticGlobalSeed() else fixedSeed;
This function is impure!
seed |
Type: Integer Description: Automatically generated seed |
---|
Date | Description | ||
---|---|---|---|
June 22, 2015 |
|