Monte Carlo simulation of the tomato salad problem