generate.distribution function

Randomly sample values from a distribution