The Monte Carlo Integration of Rate Equations