function randNum() {
  if (count1 == count2) {
    rand = Math.random() * 100;
    rand = Math.ceil(rand);
    rand = rand % 2;
    if (rand == 1) {
      count2++;
    } else {
      count1++;
    }
    return rand;
  } else if (count1 > count2) {
    count2++;
    return 1;
  } else {
    count1++;
    return 0;
  }
}
//Generates a random number between 0 and 1
Generates a random number between 0 and 1
Generates a random number between 0 and 1
function randNum() {
  if (count1 == count2) {
    rand = Math.random() * 100;
    rand = Math.ceil(rand);
    rand = rand % 2;
    if (rand == 1) {
      count2++;
    } else {
      count1++;
    }
    return rand;
  } else if (count1 > count2) {
    count2++;
    return 1;
  } else {
    count1++;
    return 0;
  }
}
function randNum ( ) { if ( count1 == count2 ) { rand = Math . random ( ) * 100 ; rand = Math . ceil ( rand ) ; rand = rand % 2 ; if ( rand == 1 ) { count2 ++ ; } else { count1 ++ ; } return rand ; } else if ( count1 > count2 ) { count2 ++ ; return 1 ; } else { count1 ++ ; return 0 ; } }
Generates a random number between 0 and 1
Generates a random number between 0 and 1