I tried to use /random for a minigame (no mods/pluggins/addons), but when I did /random roll <any number >2>, the command thought that number was less than 2.
Steps to Reproduce:
Open any world (even without cheats).
Type in "/random roll <any number bigger than 2>"
Press Enter.
Expected Result:
A random number will be chosen and outputted.
Observed Result:
The value is presumed as "less than 2," and no number is outputted.
This is Works As Intended
this is asking for a range, not a single number. You are supposed to put /random roll a number, two dots, and another number. For example, to roll a random number from 1 to 10, type in
/random roll 1..10
You should get a number from 1-10
If you type in just a single number, it will say "range of the random value must be at least 2" because you only specified one number. If you type in "x..y" it will work.