Core (LV::RandomContext): Fix formula for ranged number generator