Hacker News new | ask | show | jobs
by lcnPylGDnU4H9OF 719 days ago

  document.querySelectorAll('input[type="checkbox"]').forEach(function(checkbox) {
    checkbox.checked = Math.random() >= 0.5;
  });