Skip to content

raylib.GetRandomValue

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get a random value between min and max included

Parameters

Parameter Default Value Note
min
max

Return value

Condition Return Value
(always) number

Notes

Example

// Roll a six-sided die
roll = raylib.GetRandomValue(1, 6)
print "You rolled: " + roll

Clone this wiki locally