Mojira Archive
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.

Invalid

Rob23

2023-12-03, 10:18 AM

2023-12-03, 11:02 AM

2023-12-03, 11:02 AM

0

0

Unconfirmed

(Unassigned)

1.20.3 Release Candidate 1

-