id summary reporter owner description type status milestone component version severity resolution keywords cc 8491 boost::random::discrete_distribution ignores the first element astralstorm@… No-Maintainer "It seems that discrete_distribution can set the first item weight to 0, which should not be possible. Categorical distribution like this must use all supplied items - of course you use actual weight 0 as a marker of ""can't happen"", which should be documented. The attached testcase demonstrates the problem. (As well as shows another one that discrete_distribution can't handle negative weights properly.) " Bugs closed To Be Determined random Boost 1.53.0 Showstopper invalid