pub fn random_pairs<X: Clone, I: Iterator<Item = X>, Y: Clone, J: Iterator<Item = Y>>(
    seed: Seed,
    xs_gen: &dyn Fn(Seed) -> I,
    ys_gen: &dyn Fn(Seed) -> J
) -> RandomPairs<X, I, Y, J>
Expand description

This documentation applies not only to random_pairs, but also to random_triples, random_quadruples, and so on. See random_tuples for more information.

Generates random $n$-tuples with elements from $n$ iterators.

The probability of a particular $n$-tuple being generated is the product of the probabilities of each of its elements.

xs, ys, zs, … must be infinite.

Examples

See here.