modelImpureGenerator
Demonstrates the usage of the impure random number generator
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This example demonstrates how to use the impureRandom(..) function to generate random values at event instants. Typically, this approach is only used when implementing an own, specialized block that needs a random number generator. Simulation results are shown in the next figure:
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | impureRandom_y | impureRandom.y | |
| Modelica.Blocks.Noise.GlobalSeed | globalSeed | ||
| Utilities.ImpureRandom | impureRandom |
Revisions
| Date | Description | ||
|---|---|---|---|
| June 22, 2015 |
|