Cheat Sheets/Power Apps/RandBetween
Power Fx function

RandBetweenPower Fx function reference

Random whole number in range.

Syntax

powerfx
RandBetween( Bottom, Top )

Examples

powerfx
RandBetween(1, 100)
e.g. 42

A four-digit confirmation code.

powerfx
RandBetween(1000, 9999)
powerfx
Set(varDiceRoll, RandBetween(1, 6))

Common mistakes & gotchas

Related Power Fx functions

From Math & aggregation

Used in these tutorials

← Back to the Power Apps (Power Fx) cheat sheet