I have a distribution of a variable X that has the following shape:
Now, I want to "Flatten" this distribution- that is, take a sample of this