random function

Draw a random sample from a probability distribution