Monte Carlo, Sampling, Random Numbers, Discrete Random Variables, Rejection Method.
satisfied it means the random dots is in the shaded region above f(x). And this is the key to accept or reject the u1. 6- The last step: If the above condition is true then we accept the u1 and if it is not, then we reject u1 and go back to step 2 and start with another u1. And u1 is one that