Single-variable reaction systems: deterministic and stochastic models.