Would like to assign a range of values one output value efficiently