> Unfortunately this means the chance of a collision in a year is 99.999999999998% which isn't great!
How was this computed? My intuition begs to differ.
How was this computed? My intuition begs to differ.
Milliseconds in a year: t = 1000 * 60 * 60 * 24 * 365
Probability of no collision happening for every millisecond of a year: p_2 = p_1^t
Probability of a collision happening for at least one millisecond of a year: p_3 = 1 - p_2
https://www.wolframalpha.com/input/?i=1+-+%28999999999%2F100...
It's like a dice: You have 1 in 6 chance of getting a 6 every time your roll the dice. Now, if you roll the dice 100 times the chance that you'll get a 6 at least once is then pretty high.