blockRandomRealSource

Diagram of RandomRealSource

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.PartialClockedDeviceDriverIcon.

Information

Uses the rand()function from the C standard library for creating pseudo-random numbers. The computers real-time clock is used to obtain seed values for the sequence of pseudo-random numbers.

Parameters

TypeNameDefaultDescription
Integern1Dimension of output vector

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutput[n]y

Components

TypeNameDefaultDescription
Real[n]minValuefill(0, n)Minimum value of random output
Real[n]maxValuefill(1, n)Maximum value of random output