Had a question about this problem?

Posted 19 February 2013 - 12:07 AM

The birthday paradox says that the probability that two people in a room will have the same birthday (month and date only) is more than half as long as n, the number of people in the room, is more than 23. This property is not really a paradox, but many people find it surprising. Design and develop a C++ program that can test this paradox by a series of experiments on randomly generated birthdays, which test this paradox for n= 5, 10, 15, 20, … , 100. You should run at the number of experiments for each value of n and it should output, for each n, the number of experiments for that n, such that two people in that test will have the same birthday.