This paper considers a method of stochastic solution to the anomalous diffusion equation with a fractional derivative with respect to both time and coordinates. To this end, the process of a random walk of a particle is considered, and a master equation describing the distribution of particles is obtained. It has been shown that in the asymptotics of large times, this process is described by the equation of anomalous diffusion, with a fractional derivative in both time and coordinates. The method has been proposed for local estimation of the solution to the anomalous diffusion equation based on the simulation of random walk trajectories of a particle. The advantage of the proposed method is the opportunity to estimate the solution directly at a given point. This excludes the systematic component of the error from the calculation results and allows constructing the solution as a smooth function of the coordinate.