My First C Program September 13, 2014 by siteadmin·0 Comment I wrote a short lottery number generator. It accepts two inputs from the user: 1> How many numbers? 2> Range of numbers? It then checks to see if the user input is valid then loops through a for loop to generate X numbers.