Ruby find array of users ID

Is it also possible to use a range of users ID, for example from 100 to 300 ?
Thanks