Zaslat SMS: Non-smooth deterministic or stochastic discrete dynamical systems