Recently I decided to convince myself of the validity of the paradox through the creation of a simple computer program. What this program does is takes a test-pool (or what I call a "room") and for each "person" in the "room" picks a number from 1 to 365. Then it checks to see if there are any duplicate numbers and returns "1" if there are and "0" if there aren't. Then it repeats this process a user specified number of times until it finally averages all of the ones and zeros together to produce a probability.
For the fun of it, I decided to have the program graph whole ranges of room-sizes to show the really unintuitive behavior of this problem.This program doesn't do much, but it does what it says it will pretty well. It's worth taking a look at.
Subscribe for our newsletter with best Mac offers from MacUpdate.
Downloaded & Installed 3,910 times