Monte Carlo simulation of the atomic master equation for spontaneous emission | Synapse