Sample a value from the distribution.
random number generator to use
Array of length n with the samples
See Implementation
Sample a value from the distribution.