Stochastic dynamical systems