1: \begin{abstract}
2: In high-intensity ($>10^{21}$Wcm$^{-2}$) laser-matter interactions gamma-ray
3: photon emission by the electrons can strongly effect the electron's dynamics
4: and copious numbers of electron-positron pairs can be produced by the emitted
5: photons. We show how these processes can be included in simulations
6: by coupling a Monte-Carlo algorithm describing the emission to a
7: particle-in-cell code. The
8: Monte-Carlo algorithm includes quantum corrections to the photon emission,
9: which we show must be included if the pair production rate is to be
10: correctly determined. The accuracy, convergence and energy conservation
11: properties of the Monte-Carlo algorithm are analysed in simple test problems.
12: \end{abstract}
13: