}
}
// after this binary search, nabove is always nbelow+1 and they straddle rand:
return nbelow;
} else {
throw new IncorrectDistributionParameterException("Remember: "
+ "all the probability value given must be greater than zero and the sum of all the values must be 1.0");
}
}