Probability can be a bit counter-intuitive at times. Take for example, the birthday problem / paradox: how many people do you need in a room to have a 50/50 chance that two share the same birthday?
Probability can be a bit counter-intuitive at times. Take for example, the birthday problem / paradox: how many people do you need in a room to have a 50/50 chance that two share the same birthday?
In the spirit of yesterday’s post about HTML5’s canvas
, I’ve got another post. This time, it’s a little buggy. 😄
Let’s play with HTML5 canvas elements!
Basically, I want to draw some simple line diagrams. Go from top to bottom on one side while going from right to left along the top or bottom. It sounds complicated, but perhaps it’s easier to explain with a drawing:
A couple of months ago, I posted a simple simulation of a loaded dice game posted by Lifehacker (originally from DataGenetics). Today I wanted to take a chance to give everyone a chance to actually play the game.
So everyone would love to win the lottery right? Just think of what you could do if you had even $1 million dollars to spend. You could buy a dozen tacos a day at Taco Bell for the rest of your life. And your children’s lives. And their children’s lives. 228 years to be more precise. Or you could pay to send the entire family from Cheaper by the Dozen to the average state university–even if they each took an additional two years to graduate. And that’s just for $1 million. Payouts are usually much higher than that…
So what’s the catch?
(If you came here just for the Powerball simulation, it’s down at the bottom of the page. Click here to go straight there.)