Monte Carlo, Sampling, Random Numbers, Discrete Random Variables, Rejection Method.
specially when we have to put some of the useless generated random numbers in a trash! and accept only those which satisfy the condition of the problem. It seems wasting random numbers worth it when the mathematical solution of the inverse function is difficult. Steps to implement Monte Carlo