Modified RangedNumberGenerator in order to be compatible with random numbers that can be returned from the context.
Modified RangedNumberGenerator in order to correctly start from the lower bound when running out of numbers.