mojira.dev
MC-279025

/random believes everything is <2

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:

  1. Open any world (even without cheats).

  2. Type in "/random roll <any number bigger than 2>"

  3. 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.

Linked issues

Attachments

Comments 1

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.

aStickGuy

(Unassigned)

Unconfirmed

(Unassigned)

1.21.4

Retrieved