Modified RangedNumberGenerator in order to correctly start from the lower bound when running out of numbers.