1. In an electronic device, a method of simulating a system that comprises a plurality of chemical reactions, comprising the steps of: determining a reaction occurrence time for a first chemical reaction using a first probability distribution associated with the first chemical reaction, wherein the first chemical reaction is a non-mass action chemical reaction; and determining a reaction time for a second chemical reaction using a second probability distribution associated with the second chemical reaction.