deterministic and stochastic examples