We'll need this to get a sampling function from a CDF
We'll need this to get a sampling function from a CDF