A simple stability criterion for dynamical systems with stochastic switching and/or stochastic time-delays. (1st December 2022)