A model of a discrete stochastic medium for the problems of deformation and flow of loose materials. [in Russian]