Skip to content

sjroma/lotteryNumbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate random numbers for the Mega Millions and Powerball lotteries

A front-end JavaScript exercise to generate random numbers for the U.S. based lottery games, Mega Millions and Powerball.

  • the HTML portion was a good way for me to brush up on when to use id= and when to use class=
  • the CSS portion, while simple, was still a good exercise in setting up something that was simple and pleasing to look at and also functional
  • Javascript was a bit of a challange. I struggled on whether to
    • generate the numbers using the Math object or select them from an array of numbers
      • if an array, should I just use the Math object to select numbers from the array?
      • if an array, should I randomize the array and select the first set?
      • should I randomize the array and then use the Math object to select numbers from the array?
    • ultimately I decided to generate random numbers using the Math object
~/freeCodeCamp/lotteryNumbers

About

Generate lucky numbers for Mega Millions and Powerball (a front-end JavaScript app I wrote to generate random numbers for the U.S. based Mega Millions and Powerball lottery games)

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors