normalization in inv_cdf_sample