Discrete form of the Analytic Method
A third technique is to divide the interval (a,b) into a number of
pieces Next create an array such that the number of entries with a
particular value
is proportional to the value .
A
random integer uniformly distributed between one and the last entry in
this array will serve as the index which selects the new scattering
angle.
|