Monte Carlo, Sampling, Random Numbers, Discrete Random Variables, Rejection Method.
at: Attention: Obviously, the rejection method works only if the probability density function is not infinite anywhere and if it is not difficult to determine the location of its maximum value. 2- The second step is to make a random number, u1, that is uniform in the range [0,1] and use it to