Distributions of Functions of Random Variables