-
-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider pruning gen_weighted_bool #47
Comments
A search on github shows about 400 matches for This feels quite niche; I'm not really sure whether to keep it and improve the doc or remove. |
#308 does exactly this |
of `use bar as foo`. Change all uses of `use foo = bar` to `use bar as foo`. Implements RFC rust-random#47. Closes #16461. [breaking-change]
It's trivial to open-code; it may not be worth the benefit to have it as a method.
If it is kept, perhaps change the check from
n <= 1
ton == 0
to be clearer as to the intent, as onlyn == 0
would cause misbehavior ingen_range()
.The text was updated successfully, but these errors were encountered: