Abstract.It is well known that the structure of magnetic field lines in solar wind can be influenced by the presence of the magnetohydrodynamic turbulence. We have developed a Monte Carlo simulation which traces the magnetic field lines in the heliosphere, including the effects of magnetic turbulence. These effects are modeled by random operators which are proportional to the square root of the magnetic field line diffusion coefficient. The modeling of the random terms is explained, in detail, in the case of numerical integration by discrete steps. Furthermore, a proper evaluation of the diffusion coefficient is obtained by a numerical simulation of transport in anisotropic magnetic turbulence. The scaling of the fluctuation level and of the correlation lengths with the distance from the Sun are also taken into account. As a consequence, plasma transport across the average magnetic field direction is obtained. An application to the propagation of energetic particles from corotating interacting regions to high heliographic latitudes is considered.