|
2 | 2 |
|
3 | 3 |
|
4 | 4 | This script was just an exercise in response to a query by a relative. |
5 | | -It is not unique. There are other scripts available on Github and elsewhere. |
| 5 | +It is not unique. There are other scripts available for the same purposes on Github and elsewhere. |
6 | 6 | If you want something like this, maybe try writing your own. |
7 | 7 |
|
8 | 8 | This script spits out sets of numbers matching the rules for [Powerball](https://en.wikipedia.org/wiki/Powerball) and |
9 | 9 | [Mega-Millions](https://en.wikipedia.org/wiki/Mega_Millions) games. |
10 | 10 | It uses the Python module ```secrets``` to generate values having |
11 | | -maximum entropy (think '*random*') which are then used to assemble each play. |
| 11 | +*maximum* entropy (think '*random*') which are then used to assemble each play. |
12 | 12 | No need to think about your numbers, nor worry about the Lottery empire |
13 | 13 | or someone else generating your numbers for you. |
14 | 14 |
|
@@ -66,18 +66,38 @@ Wrap that code in a conditional to ensure we receive user input -- an ```if; the |
66 | 66 |
|
67 | 67 | ## Reference |
68 | 68 | Powerball and Mega-Millions are played by selecting six numbers. |
69 | | -Powerball: Five numbers between 1-69 and one “Powerball” number between 1-26. |
70 | | -Mega-Millions: Five numbers between 1-70 and one “Mega Ball” number between 1-25. |
| 69 | +Powerball: Five numbers between 1-69 and one “Powerball” number between 1-26. (*Approximate odds of a jackpot are [1 in 292,201,338](https://www.usamega.com/powerball/faq)*) |
| 70 | +Mega-Millions: Five numbers between 1-70 and one “Mega Ball” number between 1-25. (*Approximate odds of a jackpot are [1 in 290,472,336](https://www.usamega.com/mega-millions/faq)*) |
71 | 71 |
|
72 | 72 | See [Powerball](https://www.usamega.com/powerball/faq) and |
73 | 73 | [Mega-Millions](https://www.usamega.com/mega-millions/faq) FAQs for more information. |
74 | 74 |
|
75 | | -Each play is $2.00 (*and have options that have their own additional costs*) |
| 75 | +Each Powerball play is $2.00 and each Mega-Millions play is $5.00 (*and have options that have their own additional costs*) |
76 | 76 |
|
77 | 77 | ## Caution |
78 | | -REMEMBER: **The odds are not in your favor**. You are gambling when you buy tickets and there is no guarantee you'll win any money. Playing the lottery is only entertainment. |
| 78 | +REMEMBER: **The odds are not in your favor**. You are gambling when you buy tickets and there is no guarantee you'll win any money. Playing the lottery is only entertainment. It is described by [Salil Mehta](https://statisticalideas.blogspot.com/2012/11/statistical-ideas-website.html) as "[a tax on people who may not really understand what they’re doing](https://www.nytimes.com/2024/03/29/business/lottery-jackpot-megamillions-powerball.html)" followed by "Unquestionably, if you need the money, don’t waste it on a lottery ticket. Use it to pay the bills, or save it and invest it." |
| 79 | + |
79 | 80 | https://en.wikipedia.org/wiki/Powerball#Power_Play |
80 | 81 | https://en.wikipedia.org/wiki/Mega_Millions#Winning_and_probability |
81 | 82 | This is also true for all commercial gambling. See: |
82 | 83 | Gambling FAQ: https://yourlifeiowa.org/health-and-wellness-gambling#frequently-asked-questions |
83 | 84 | And the "Payout Wizard" at: https://yourlifeiowa.org/health-and-wellness-gambling#frequently-asked-questions |
| 85 | + |
| 86 | +But... |
| 87 | +### Some of the Biggest Jackpots in the U.S. |
| 88 | +* $2.04 billion: Powerball Won Nov. 7, 2022, in California |
| 89 | +* $1.817 billion: Powerball Won Dec. 24, 2025 in Arkansas |
| 90 | +* $1.787 billion: Powerball Won Sept. 6, 2025, in Missouri and Texas |
| 91 | +* $1.765 billion: Powerball Won Oct. 11, 2023, in California |
| 92 | +* $1.602 billion: Mega Millions, Aug. 8, 2023, Florida |
| 93 | +* $1.6 billion: Powerball No winner yet |
| 94 | +* $1.586 billion: Powerball Won Jan. 13, 2016, in California, Florida and Tennessee |
| 95 | +* $1.537 billion: Mega Millions,Oct. 23, 2018, South Carolina |
| 96 | +* $1.348 billion: Mega Millions Jan. 13, 2023, Maine |
| 97 | +* $1.337 billion: Mega Millions July 29, 2022, in Illinois |
| 98 | +* $1.326 billion: Powerball Won April 6, 2024, in Oregon |
| 99 | +* $1.269 billion: Mega Millions Dec. 27, 2024, California |
| 100 | +* $1.08 billion: Powerball Won July 19, 2023, in California |
| 101 | +* $842.4 million: Powerball Won Jan. 1, 2024, in Michigan |
| 102 | +* $768.4 million: Powerball Won March 27, 2019, in Wisconsin |
| 103 | +* $758.7 million: Powerball Won Aug. 23, 2017, in Massachusetts |
0 commit comments