Simulate herd immunity of pandemic. How many people a patient can infect during his/her infectious period is so critical to the proportion of the population that needs to be immune to achieve herd immunity.