Week 10; Generation of discrete random variable using inverse transform and acceptance rejection method