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!
function automaticGlobalSeed output Integer seed "Automatically generated seed"; end automaticGlobalSeed;
Date | Description | ||
---|---|---|---|
June 22, 2015 |
|