changed Range to the more general AffineStepper class where next() is now defined as ax + b