Text this: On the birthday problem: some generalizations and applications