Assignment

How to create an assignment that accepts a range of numerical values ?