ADL®

Random Number Block

The Random Number Block generates a random number between the user-specified minimum and the maximum, as follows.

  • A discrete event message triggers the Random Number Block.
  • When triggered, the Random Number Block generates a random number between the user-specified minimum and the maximum inputs.
  • The Block outputs a random number as well as passes the original message unchanged through the output message port.

Block settings

To change default block settings, double-click the block to open the Block Editor.

Setting Description
Name Name to display beneath the block on the ADL canvas
BodyColor Background color of the block
Description Optional text to explain how the block is used