The impact parameter p in the scattering integral is determined either from a stochastic distribution or in a way that takes into account the crystal structure of the sample. The former method is suitable only in simulations of implantation into amorphous materials, as it does not account for channeling.