pub fn sample_variants_with_probabilities<K, RNG>( rng: &mut RNG, probs: &HashMap<K, f64>, ) -> Kwhere K: Eq + Hash + Copy, RNG: Rng + ?Sized,