How can I get a specific number within a specified range of numbers