fn run(times: u16) -> u16 {
  let mut winners: u16 = 0;
  let mut rng = rand::thread_rng();

  for _ in 0..times {
    if simulate(&mut rng) {
      winners += 1;
    }
  }

  winners
}
/// Runs the specified amount of simulations returning the number of winners.
Runs the specified amount of simulations returning the number of winners.
Runs the specified amount of simulations returning the number of winners .
fn run(times: u16) -> u16 {
  let mut winners: u16 = 0;
  let mut rng = rand::thread_rng();
  for _ in 0..times {
    if simulate(&mut rng) {
      winners += 1;
    }
  }
  winners
}
fn run ( times : u16 ) -> u16 { let mut winners : u16 = 0 ; let mut rng = rand :: thread_rng ( ) ; for _ in 0 .. times { if simulate ( & mut rng ) { winners += 1 ; } } winners }
Runs the specified amount of simulations returning the number of winners.
Runs the specified amount of simulations returning the number of winners .
times
u16
times
u16