You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If checked_add performs addition that returns None instead of wrapping around on overflow then won't it always return either a value or None? If so, when would the default case ever happen? And, if it never happens then shouldn't it be removed? And, if it should be removed then isn't it then the same as the sample_single_value without the unbiased feature (Canon's method, biased)?
The text was updated successfully, but these errors were encountered:
In
sample_single_inclusive
with featureunbiased
:rand/src/distributions/uniform.rs
Line 620 in bca078e
If
checked_add
performs addition that returns None instead of wrapping around on overflow then won't it always return either a value or None? If so, when would the default case ever happen? And, if it never happens then shouldn't it be removed? And, if it should be removed then isn't it then the same as thesample_single_value
without theunbiased
feature (Canon's method, biased)?The text was updated successfully, but these errors were encountered: