Share your repls and programming experiences

← Back to all posts
Powerball Lottery!
DanielSheldon (1)

The chances of getting a one in this program are about the same as winning the jackpot for the Powerball Lottery. It's simple code, but I'm curious if anyone can actually get a one.

SixBeeps (3624)

This might be so if only one person runs the program, but let's say 290000000 people run it. The chances of that happening are:

But in reality, duplicate ticket numbers do not exist. Therefore, the real possibility is something like: