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