test sampling for Univariate distributions