Monte Carlo simulation of polarising cavities