Monte Carlo simulation of particle segregation