Math.Random
This XCommand can be used to generate random item values.
Description
This logic generates a random value between From and To and stores it in the provided output item.
Inputs
None
Outputs
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
Random | ItemID | M | The itemID that will hold the random value. |
Parameters
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
From | Number | M | Lower limit of generated random values. |
To | Number | M | Higher limit of generated random values. |
Possible trigger types
Any
Article applies to the following products:
- NETx BMS Platform, XLogic Library 1.0.12+
- NETx Multi Protocol Server, XLogic Library 1.0.12+