Skip to content

coolwater/megamillions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

megamillions

C++ program for Mega Millions lottery ticket generator, specify the number of tickets on command line

Compiling the program

g++ -std=c++11 lottery.cpp -o lottery

Run sample output

$ ./lottery 20 Mega Millions Lottery - Ticket Generator (2016) Number of lottery tickets requested: 20 Initializing the random number generator Mega Millions Ticket # 1: 23 37 62 14 33 MEGA: 8 Mega Millions Ticket # 2: 19 37 66 34 70 MEGA: 6 Mega Millions Ticket # 3: 52 21 18 16 39 MEGA: 9 Mega Millions Ticket # 4: 13 38 57 52 18 MEGA: 11 Mega Millions Ticket # 5: 5 12 27 58 22 MEGA: 2 Mega Millions Ticket # 6: 27 31 58 44 70 MEGA: 2 Mega Millions Ticket # 7: 17 49 58 29 38 MEGA: 2 Mega Millions Ticket # 8: 62 65 5 61 66 MEGA: 2 Mega Millions Ticket # 9: 75 53 62 37 59 MEGA: 15 Mega Millions Ticket # 10: 17 18 72 49 2 MEGA: 10 Mega Millions Ticket # 11: 64 57 37 31 27 MEGA: 8 Mega Millions Ticket # 12: 48 36 38 10 19 MEGA: 9 Mega Millions Ticket # 13: 70 25 12 5 37 MEGA: 12 Mega Millions Ticket # 14: 61 62 6 71 45 MEGA: 1 Mega Millions Ticket # 15: 55 52 60 67 48 MEGA: 1 Mega Millions Ticket # 16: 24 7 69 67 23 MEGA: 11 Mega Millions Ticket # 17: 51 30 12 20 17 MEGA: 6 Mega Millions Ticket # 18: 18 5 70 47 17 MEGA: 4 Mega Millions Ticket # 19: 62 38 52 5 21 MEGA: 8 Mega Millions Ticket # 20: 3 58 46 21 44 MEGA: 6

About

C++ program for Mega Millions lottery ticket generator, specify the number of tickets on command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages