Simulation of the interaction between individuals in a community