Added initial code for random distribitions.