Integromat Support Team
Updated

Returns a floating-point, pseudo-random number in the range [`0`

, `1`

) (inclusive of `0`

, but not `1`

).

Use the following formula to generate an integer pseudo-random number in the range [`min`

, `max`

] (inclusive of both, `min`

and `max`

):

You may copy and paste the formula's code into a field:

{{floor(random * (1.max - 1.min + 1)) + 1.min}}

Chatbot enthusiasts and alike that would like to create let's say a dice game can employ the `random`

variable to randomly pick a number for example between 1 and 6 and then message that number to a user in the respective Chatbot platform as the response.

- In the mapping panel, head over to the Math functions tab:

- Under the Math functions tab, select the
`floor`

function. - Insert the
`random`

variable in between the brackets followed by the`*`

(multiplication operator) and number`6`

. - Add
`+`

(addition operator) after the bracket and number`1`

. - Alternatively, you may copy and paste the formula's code into a field:
{{floor(random * 6) + 1}}