The code that does things like pick the starting people that are infected, it is calling random.random() over the entire population every time. This is random sampling with replacement, and means that we can get duplicates. Because of this, we may not be getting as many unique people as we are supposed to.
The code that does things like pick the starting people that are infected, it is calling
random.random()
over the entire population every time. This is random sampling with replacement, and means that we can get duplicates. Because of this, we may not be getting as many unique people as we are supposed to.