There are multiple options for generating data from a given distribution.
The simplest if you have the inverse cumulative distribution (I can't tell which of the above are supposed to be which) is to generate $n$ observations from a uniform distribution and plug those values into the inverse of the CDF.
A couple of others include Rejection Sampling and Metropols-Hastings sampling. Links from those pages can help you find others if that is not enough.