pub fn edit_dna<R: Rng>(seq: &mut Vec<u8>, p: f64, r: &mut R) {
    for b in seq.iter_mut() {
        if r.gen_range(0.0, 1.0) < p {
            *b = random_base(r);
        }
    }
}
/// 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<R: Rng>(seq: &mut Vec<u8>, p: f64, r: &mut R) {
    for b in seq.iter_mut() {
        if r.gen_range(0.0, 1.0) < p {
            *b = random_base(r);
        }
    }
}
pub fn edit_dna < R : Rng > ( seq : & mut Vec < u8 > , p : f64 , r : & mut R ) { for b in seq . iter_mut ( ) { if r . gen_range ( 0.0 , 1.0 ) < p { * b = random_base ( r ) ; } } }
Randomly mutate each base with probability `p`
Randomly mutate each base with probability ` p `
seq
&mut Vec<u8>
p
f64
r
&mut R
seq
&mut Vec<u8>
p
f64
r
&mut R