RandomNumber
This simulation component outputs a random double value.
When to use
Use this simulation component if you want to output a random double value when the simulation component gets triggered.
How to use
Add this simulation component from the simulation component library. When the simulation is running and the input Trigger
is triggered, the simulation component outputs a random numeric value.
Parameters
MaxValue
A value indicating the upper limit of the random double output.
MinValue
A value indicating the lower limit of the random double output.
Inputs
Trigger
If triggered, this input generates a Random
numeric double value.
Outputs
Random
Outputs a random double value.
Example
In this example, the LightBarrier simulation component triggers a random double value between 0 and 5 when the ray gets interrupted.
The machine control, which was mapped with the help of the ScriptComponent simulation component, processes this value and must react accordingly.