added error checks for univariate/discrete RNGs