package loops;

import java.util.*;

public class ForLoopTest {
  public static void main(String[] args) {
    System.out.println("For Loop Test");
    Random rand = new Random();
    int randomInteger;
    int count = 0;
    for (int i=0;i<5;i++) {
      randomInteger = rand.nextInt(2);
      if (randomInteger == 0)
        count++;
    }
    System.out.println("Number of 0's produced in 5 tries is "+count);
  }
}

