Okay so i have an assignment to do that requires me to create a lottery generator. The program has to ask the user to enter a maximum number in the lottery then put in how many numbers they want to generate from the program 1 - 6 different numbers...These numbers have to be randomized and are not allowed to be repeated...so for example its not allowed to generate a group of numbers such as 4 4 5 3...no 2 or more of the same numbers...and also some validations like if they enter a number that is too low or too high then what the program is asking then the program should ask again for the input and tell the user why its asking again...I have been at this for a week now and i keep getting segmentation fault after compiling it and i need help with this if it would be possible. Thank you.



2Likes
LinkBack URL
About LinkBacks


