Approximate evaluation of the distribution of the random sum of I.I.D. random variables through a discretization approach