mojira.dev
MC-267146

/random roll|value only support ranges up to 2^31-2

The /random roll and /random value command fails when the range contains over 2147483646 (2^31-2) values.

I know that this behavior is intended but implementing over 2^31-2 values only requires switching from Random.nextInt(int bound) to Random.nextLong(long bound) for bigger ranges.

Comments 1

This is a feature request.

Rob23

(Unassigned)

Unconfirmed

(Unassigned)

1.20.3 Release Candidate 1

Retrieved