I need someone to correct me or to discuss with me, why are my results of a 23 person calculation of the bday paradox always ~65%. It is said it should be ~50%, but whatever I do, I receive this result.
What I ask is someone to explain to me what I did wrong and correct me, or explain to me (if I'm good) why are my results as they are.
The little program I made is here: dotnetfiddle
Could some see it and point out what they think?
Thanks! Hope you all have a great day.
EDIT: Thanks for the feedback! Issue was that I only cleared the list when the dupe was found and was resolved by moving the "clear" line outside of the if condition so it runs after every iteration. Now the results are constant, and around 50%. Cheers!
Because you clear up the list only in cases when dupes are found. For non-dupe cases the list keeps growing increasing probability of the dupes in the next iterations.