News for hackers. Stuff that matters.
Re:Some tiny personal programs I've written by ggerganov on Wednesday March 09, 2022 @05:28PM (#30620819)
I've always wondered what would be the chance to win the lottery if I played consistently a certain set of numbers. Every day, no excuses.

So I wrote a script to scrape the lottery site archive and check retrospectively the success rate [0]. Well.. the result is what you would have expected.

[0] https://ggerganov.github.io/lottery-check

Bonus - clicking the "Random" button helps you really understand how futile playing the lottery actually is.

Re:Some tiny personal programs I've written by theshrike79 on Thursday March 10, 2022 @04:49AM (#30625094)
Except for those few cases where the people planning the lottery don't know math and buying all the combinations costs less than the amount of the wins :)

A Romanian Economist did this in the 90's: https://thehustle.co/the-man-who-won-the-lottery-14-times/

Re:Some tiny personal programs I've written by Ratalala on Wednesday March 09, 2022 @08:08PM (#30622064)
That would be 49!/(43!6!) = 13983816 combinations. So, on average, you need to play 13983816 times before your first win (geometric distribution). At one game a day, that's nearly 40000 years.