[4.0] Ensured Random::Range does not overflow