A Monte Carlo calculation of cell inactivation