Solving system of equation by Monte-Carlo methods