A library of convenient functions for taking samples and generating random vectors