Monte Carlo, Sampling, Random Numbers, Discrete Random Variables, Rejection Method.
Rejection method: Let’s imagine we have a typical pdf ( probability density function) like below: Steps: 1- The first step is scaling the original probability density function ( I mean p(x)) by its maximum value and then obtaining: Accordingly, function f(x) has a maximum value of 1 which occurs