Cheat Sheets/Power Apps/Rand
Power Fx function

RandPower Fx function reference

Random decimal 0–1.

Syntax

powerfx
Rand()

Examples

powerfx
Rand()
e.g. 0.5634
powerfx
First(SortByColumns(AddColumns(Trivia, "Sort", Rand()), "Sort", SortOrder.Ascending))
powerfx
If(Rand() < 0.5, "Heads", "Tails")

Common mistakes & gotchas

Related Power Fx functions

From Math & aggregation

Used in these tutorials

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