Complex systems under stochastic dynamics