Standardization of random distributions

This closes #282 and #296.