This package contains examples demonstrating the usage of the functions in package Random.
Extends from Modelica.Icons.ExamplesPackage
(Icon for packages containing runnable examples).
Name | Description |
---|---|
GenerateRandomNumbers | Generate random numbers with the various random number generators |
This example demonstrates how to utilize the random number generators of package Math.Random.Generators in a Modelica model. The example calculates random numbers in the range 0 .. 1 of the available random number generators periodically with a sample period of 0.05 s. Simulations results are shown in the figure below:
Extends from Modelica.Icons.Example
(Icon for runnable examples).
Type | Name | Default | Description |
---|---|---|---|
Period | samplePeriod | 0.05 | Sample period for the generation of random numbers |
Integer | globalSeed | 30020 | Global seed to initialize random number generator |
Integer | localSeed | 614657 | Local seed to initialize random number generator |
Integer | id | Utilities.initializeImpureRandom(globalSeed) | A unique number used to sort equations correctly |
Generated 2018-12-12 12:14:35 EST by MapleSim.