pub const fn random_unique_pairs<I: Iterator>(xs: I) -> RandomUniquePairs<I> where
    I::Item: Eq,
Expand description

Generates random pairs using elements from a single iterator, where the two elements of each pair are unequal.

The input iterator must generate at least two distinct elements; otherwise, this iterator will hang.

xs must be infinite.