A stochastic approach for supply systems