Function malachite_base::vecs::random::random_vecs_length_2
source · [−]pub fn random_vecs_length_2<T, I: Iterator<Item = T>, J: Iterator<Item = T>>(
seed: Seed,
xs_gen: &dyn Fn(Seed) -> I,
ys_gen: &dyn Fn(Seed) -> J
) -> RandomFixedLengthVecs2Inputs<T, I, J>ⓘNotable traits for RandomFixedLengthVecs2Inputs<T, I, J>impl<T, I: Iterator<Item = T>, J: Iterator<Item = T>> Iterator for RandomFixedLengthVecs2Inputs<T, I, J> type Item = Vec<T>;
Expand description
This documentation applies not only to random_vecs_length_2
, but also to
random_vecs_length_3
, random_vecs_length_4
, and so on. See
random_vecs_fixed_length
for more information.
Generates random length-$n$ Vec
s with elements from $n$ iterators.
The probability of a particular length-$n$ Vec
being generated is the product of
the probabilities of each of its elements.
xs
, ys
, zs
, … must be infinite.
Examples
See here.