Cheat Sheets/Power Automate/rand
Power Automate (WDL) function

randPower Automate (WDL) function reference

Random integer in a range.

Syntax

wdl
rand(minValue, maxValue)

Examples

wdl
rand(1, 100)
e.g. 42
wdl
rand(1000, 9999)
A random 4-digit number
wdl
concat('TICKET-', string(rand(100000, 999999)))
e.g. "TICKET-482913"

Common mistakes & gotchas

Related Workflow Definition Language functions

From Math

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet