This question already has an answer here:
I'm pulling a “Dave” and I'm designing my own hashing algorithm. Not that I intend to use it, I'm not certifiable or anything, I just want the challenge of creating something. I'm not going to get into exactly what I'm doing, because it's probably worthless anyway. I just wanted some advice on how to calculate the chance of collisions.
So, if anybody can enlighten me on how to calculate the probability of collisions happening, I'd greatly appreciate it.