PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Generate Integer

Generates a random whole number between the limits you set.

Generate Integer picks a random whole number between a lower and an upper limit. Use it for test data, to pick a random item from a list (by index), to spread work across queues, or to generate a numeric code.

Add the action

In the Process Designer toolbox, open Utilitary and pick Generate Integer (or type Generate Integer in the search box).

The Generate Integer action properties: Lower Limit, Upper Limit and Generated Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Lower LimitInputIntegerNoThe smallest number you can get. Empty means the smallest possible integer, -2147483648.
Upper LimitInputIntegerNoThe limit you stay below. This number itself is never returned. Empty means 2147483647.
Generated ResultOutputIntegerYesThe random number.

Example

Lower LimitUpper LimitGenerated Result (one run)
1102 (any number from 1 to 9)
-10-5-9 (any number from -10 to -6)
121 (always 1)
55step fails: Lower Limit should be less than Upper Limit.
101step fails: Lower Limit should be less than Upper Limit.
(empty)(empty)-838819880

Upper Limit is not included. For a dice roll from 1 to 6, set Lower Limit 1 and Upper Limit 7.

Good to know

  • Lower Limit must be smaller than Upper Limit; equal or reversed limits stop the step.
  • The number is random, not secret: do not use it for passwords or security codes.

On this page