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.
This is a feature request.