Stochastic simulator for chemical reactions.