mojira.dev
MC-298032

unable to set value for the command /random

When trying to set a value, error “The range of the random value must be at least 2” appears, even when attempting to set the value to 2.

Expected result: the value is set to 2

Actual result: error “The range of the random value must be at least 2” appears in chat

How to reproduce:

type in “/random value 2”

press enter

Linked issues

Comments 3

I’ve known about this bug for a while.

You're using the command incorrectly.

When you use the value subcommand, it expects a range of numbers, like 1..2, which includes both 1 and 2.

But you only provided a single number: 2. That means the range goes from 2 to 2, which only includes one number — and two numbers are required for a valid range.

Thank you for your report!
We are tracking this issue in MC-279025, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as Invalid. Please take a look at the description and the comments section to see if an explanation was provided for why this issue is invalid.

If you haven’t already, please make use of the search feature to see whether an issue has already been reported.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

daniel

(Unassigned)

Unconfirmed

(Unassigned)

1.21.5, 25w20a

Retrieved