#204 avoid sampling values that have 0 probability
* compare with maximum precision
* set last cumulated probability to 1
  (even if it is not due to precision errors)