Skip to main content Skip to footer

Random Documentation

Version: 3.0.0

Retrieved: 2025-10-09 15:16:12


Random

The module generates random numbers within a configurable range. Use it to add random data to existing messages.

Settings

The module mode is set by Mode and allows Integer or Float. The module also allows the random range to be set by Min and Max. The random number is written to the Target Propertyproperty.

Name Requirements Purpose Default
Target Property String with length 1-64 The property to write the random to data
Mode Integer or Double Sets the type of number to generate Integer
Min Float The minimum number in the range 0
Max Float The maximum number in the range 100

Input

The input have no specific requirements.

Output

The generated numbers will be added to Target Property on the output message. If the property already existed it will be overwritten.

Example 1

Random integers between 50 - 100

# Settings
Target Property = data  
Mode = Integer  
TargetMin = 50  
TargetMax = 100  

Input

Just a sample object from a previous module:
{name:'demo'}

Output

The Target Propertywill contain the random integer and it will be added to the message:
{name:'demo', data:78}.