Define threshold based on the binomial distribution + use same random for repeated packets