Random numbers

This is a logic group with which random values are generated cyclically in a given number range.

When this logic group is enabled, the cyclic transmitter is activated and cyclically triggers the mathematics element via input 1.
This input is not used for the calculation of the random number but only serves as a "trigger".
Instead of a cyclical transmitter, a data point can also be used as a trigger (e.g. KNX presence detector).

The inputs "min value" and "max value" change the value range of the random numbers.

Random numbers from 0.0 to 1.0 are generated in the mathematics element via the function.

To cover the desired range of values, multiplication by the upper limit is sufficient.
generates random numbers up to 30.

To give the function a minimum value, the function is used.
Of the two values passed (x and y), this always takes the larger one.

This results in the mathematical function
max( , (rand() * ))

Hint. The higher the min limit, the higher the probability that the minimum value will be output.

 

BAB TECHNOLOGIE

Random numbers

214
This logic group is compatible with: EP, LOM
*With the download you accept the Notes on use for logic groups.