pub fn flip_bits_randomly<R: Rng>(&mut self, rng: &mut R, prob: Probability) {
        for i in 0..self.len() {
            if rng.gen::<ProbabilityValue>().is_probable_with(prob) {
                self.flip(i);
            }
        }
    }
/// Flip bits with probability `prob`.
/// The default rng for floats returns numbers in [0, 1)
Flip bits with probability `prob`.
The default rng for floats returns numbers in [0, 1)
Flip bits with probability ` prob ` . The default rng for floats returns numbers in [ 0 1 )
pub fn flip_bits_randomly<R: Rng>(&mut self, rng: &mut R, prob: Probability) {
        for i in 0..self.len() {
            if rng.gen::<ProbabilityValue>().is_probable_with(prob) {
                self.flip(i);
            }
        }
    }
pub fn flip_bits_randomly < R : Rng > ( & mut self , rng : & mut R , prob : Probability ) { for i in 0 .. self . len ( ) { if rng . gen :: < ProbabilityValue > ( ) . is_probable_with ( prob ) { self . flip ( i ) ; } } }
Flip bits with probability `prob`.
Flip bits with probability ` prob ` .
&mut self
rng
&mut R
prob
Probability