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
IteratorRandom::choose uses one random number per item since it has no way of knowing how many items will follow.
We do not use size_hint since it is not guaranteed that the supplied bounds are correct; though since incorrect implementations are considered buggy we could try.
Alternatively ExactSizeIterator could be used, but probably not without specialisation.