A stochastic model for continuum elasto-plastic behavior. I. Numerical approach and strain localization