{"size": 422, "ext": "js", "max_stars_repo_path": "Chapter3/script02.js", "max_stars_repo_name": "rhapsodyai/vanillajs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Chapter3/script02.js", "max_issues_repo_name": "rhapsodyai/vanillajs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Chapter3/script02.js", "max_forks_repo_name": "rhapsodyai/vanillajs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.1, "max_line_length": 62, "alphanum_fraction": 0.6208530806}
window.onload= initAll;

function initAll() {
  if(document.getElementById) {
    for(var i=0; i<24; i++) {
      setSquare(i);
    }
  }
  else {
    alert("Sorry, your browser doesn't support this script");
  }
}

function setSquare(thisSquare) {
  var currSquare = "square" + thisSquare;
  var newNum = Math.floor(Math.random() * 75) + 1;

  document.getElementById(currSquare).innerHTML = newNum;
}
