ImpureGenerator

Demonstrates the usage of the impure random number generator

Diagram

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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:

Outputs (1)

impureRandom_y

Default Value: impureRandom.y

Type: Real

Components (2)

globalSeed

Type: GlobalSeed

impureRandom

Type: ImpureRandom