Upstart interview question

Asked about how to simulate a stochastic process