Functions of a Random Sample