pub fn edit_dna_string(string: &mut DnaString, p: f64, r: &mut impl Rng) {
        for pos in 0..string.len() {
            if r.gen_range(0.0, 1.0) < p {
                let base = test::random_base(r);
                string.set_mut(pos, base)
            }
        }
    }
/// Randomly mutate each base with probability `p`
Randomly mutate each base with probability `p`
Randomly mutate each base with probability ` p `
pub fn edit_dna_string(string: &mut DnaString, p: f64, r: &mut impl Rng) {
        for pos in 0..string.len() {
            if r.gen_range(0.0, 1.0) < p {
                let base = test::random_base(r);
                string.set_mut(pos, base)
            }
        }
    }
pub fn edit_dna_string ( string : & mut DnaString , p : f64 , r : & mut impl Rng ) { for pos in 0 .. string . len ( ) { if r . gen_range ( 0.0 , 1.0 ) < p { let base = test :: random_base ( r ) ; string . set_mut ( pos , base ) } } }
Randomly mutate each base with probability `p`
Randomly mutate each base with probability ` p `
string
&mut DnaString
p
f64
r
&mut impl Rng
string
&mut DnaString
p
f64
r
&mut impl Rng