Monte Carlo calculation of angular transmission functions for small angle scattering