Empirical Discrete Distribution
For generating discrete random variables, the inverse transform technique becomes a table-lookup procedure (interpolation is not required).
Suppose a finite discrete distribution has m points with a probability, Pi, at each point xi. In order to sample a random variable x from the m points, the simulator generates a random number R~U(?,1).
The value of the random variable is based on the range of numbers within which the random number falls.