pub fn weighted_with_guaranteed_assignment<T: Clone + Ord>(
candidates: Vec<(T, Weight)>,
n: u16,
rng: &mut ChaCha20Rng,
) -> Vec<T>
Expand description
Pseudo-random selection with repetitions, but for any candidate that has expected number of seats as P+Q, where P is non-negative integer and Q is in [0, 1), it guarantees at least P places.