A Computational Model of the Trader Joes Problem by Patrick Honner You can change the number of cashiers, the rate of customer entry, the check out time, and other quantities of interest (some inside the code itself) and observe the long term effects on the length of the line.