rpoly01 function

Generate n samples from the distribution