
blockRandomRealSource
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices).
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
| Type | Name | Default | Description |
| Integer | n | 1 | Dimension of output vector |
| Modelica.Units.SI.Period | sampleTime | 0.01 | Sample time of random number generation |
Components
| Type | Name | Default | Description |
| Real[n] | minValue | fill(0, n) | Minimum value of random output |
| Real[n] | maxValue | fill(1, n) | Maximum value of random output |