Simulating a stochastic differential equation