Zaslat SMS: The stochastic perturbation method for computational mechanics