A stochastic simulatoin alogorithm with diffusion