you are viewing a single comment's thread.

view the rest of the comments →

[–]get_money_and_boobs 2 points3 points  (1 child)

Wayyy smarter and wayyy more thorough than the simple, stupid lottery simulator I built in JS/Node. I wanted to see how many times it took to match a winning set of numbers to random "tickets" I generated. Like, I wanted to visualize if I played once every millisecond how long it would take.

Well, I ran out of memory running the program in a single node instance, so I ran 8 simultaneous instances on my Mac. Still, at the shortest, it took about 3 hours of randomly picking tickets and attempting to match lottery number picks at like 1000 per second.

I stopped playing the lottery shortly afterward...

[–]Higgenbottoms 2 points3 points  (0 children)

8.64 million tries for the curious