N: the number of times to repeat the test
If the probability of an event is p and the experiment is repeated n times, the probability of the event happening k times is: p = c (k, n) × p k× (1-p) (n-k). C (k, n) represents the number of combinations, that is, the number of k methods of n things.