Recently I read about how many people it takes for the probability that two or more share the same birthday to be sufficiently high.
My question: How many people do I have to know that I could be sufficiently sure (>95%) that I have to congratulate at least one person every day for the whole year, that is, all 365 days?
Rprogrammean(replicate(1e4, 365==length(union(integer(0), floor(runif(3247)*365)))))simulates 10,000 instances of this situation (within a few seconds) and consistently produces answers close to 95%. – whuber Mar 31 '16 at 19:35