Monte Carlo, Sampling, Random Numbers, Discrete Random Variables, Rejection Method.
is to compute the f(x) for the value of x obtained above: 4- The forth step is to generate another random number, u2, that is also uniform in the range [0,1]. 5- The fifth step which is the interesting part of Monte Carlo rejection method is to do the below comparison. What is this comparison