$

I'm taking Mathematical Statistics course and we are following Statistical Inference book by George Casella.

I was able to solve most of the h/w problems but i'm stuck on the last one.

Here is the problem:

Write an algorithm that uses the inverse cdf to sample from a discrete random variable whose probability function is P(X=k) = 1/(e * k!),k=0,1,2,...

I'm confused how we use inverse cdf to sample. and this e*k! is multiplication. Please help me in getting started with this problem. Any kind of help is welcome.

THanks a lot.