Modelica.Math.Random.Examples

Examples demonstrating the usage of the functions in package Random

Information

This package contains examples demonstrating the usage of the functions in package Random.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Modelica.Math.Random.Examples.GenerateRandomNumbers GenerateRandomNumbers Generate random numbers with the various random number generators

Modelica.Math.Random.Examples.GenerateRandomNumbers Modelica.Math.Random.Examples.GenerateRandomNumbers

Generate random numbers with the various random number generators

Information

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).

Parameters

NameDescription
samplePeriodSample period for the generation of random numbers [s]
globalSeedGlobal seed to initialize random number generator
localSeedLocal seed to initialize random number generator
idA unique number used to sort equations correctly
Automatically generated Thu Dec 19 17:20:25 2019.