-
-
Notifications
You must be signed in to change notification settings - Fork 479
Closed
Description
The choose functions say that they are picking an element at random, but they don't say according to which distribution. Obviously knowing the distribution is crucial to properly using this function, so I hope this gap in the docs can be fixed.
For slices I strongly assume the distribution is uniform, but for choosing from an iterator, this is much less obvious -- will the distribution always be uniform even if the size_hint is very imprecise? What if the size_hint is wrong?
Metadata
Metadata
Assignees
Labels
No labels