Google+

Chances of Zero

A random number between 0 (inclusive) and 1 (exclusive) is chosen. What is the probability that the number is 0?

Yeahh.. this question is retarded. It’s like trying to find the area of a line. You can’t.

Programming approach to this problem:

javascript:var output = 0; for (var i=0;i<10000000;i++){if (Math.random() == 0){ output++;}} alert(output);

Clear the address bar of your web browser and type that in. Basically, it’ll generate 10000000 random numbers (between 0 and 1) and check if each one is equal to 0.

You should get a alert that says "0". Meaning: Out of 10000000 attempts, 0 was generated 0 times.

That’s just it. Your chances of getting a 0 are so infinitesimally small that most people just accept that the probability is 0%.

Now, by some freak-of-nature coincidence, your computer might actually generate the full floating-point value of absolute 0, but that’s pretty unlikely.

So, no matter how bad your situation looks, your chances are never 0. So don’t give up!

(Thinks about Spanish grade..)

-Roger

Image: bag_check.png

source
Yeah.. it’s really retarded how they take away your water bottles...

3 CommentsAdd one

miisty
Mon, 23 Nov 2009 04:10:53 GMT

DANGO DANGO DANGO! ♥♥♥♥

boo
Mon, 23 Nov 2009 03:00:12 GMT

you can DROP to a 99% in chemistry yet you’re worried about spanish? =_=’

youllneverknow
Sun, 22 Nov 2009 07:13:41 GMT

that’s such a cute comic strip xD
btw, love the new song you added :D

Post a Comment

Sun, 30 Apr 2017 05:08:41 GMT