$random

Returns random numbers.

Usages

There are two usages of the $random function.

Usage #1

$random

Returns a random number between 0 and 9.

Usage #2

$random[minimum;maximum]

Returns a random number between 'minimum' and 'maximum'.

Example

$nomention
🎲 You rolled `$random[1;7]`!

$random[] never returns the 'maximum' value, as it's right side exclusive range. Basically, to get a random number between 1 and 10; you'd put 11 as the 'maximum' instead of 10 i.e $random[1;11].

example