According to the Beer-Lamber law the particle free flight follows an exponential distribution with the following pdf:
A where the attenuation coefficient (total macroscopic cross section) values can be taken e.g. from here here.
Let us sample this using the inverse cumulative method:
Let us equate this to the on (0,1) Uniformly distributed r random number:
After reordering and using the fact that the r random number is uniformly distributed on (0,1) therefore in distribution equals to 1-r:
In heterogenous material distribution this sampling must be done for each homogenous subdomain separately.
After the flee flight we discuss interaction sampling.
The original document is available at http://537999.nhjqzg.asia/tiki-index.php?page=Sampling+the+free+flight+distance