Created
July 17, 2018 04:40
-
-
Save bentinata/d41e54ee9384df1709767fc0066a3ae0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generate (min, max) { | |
document.querySelectorAll('#rounded-corner>tbody>tr').forEach((e, i) => { | |
const n = Math.floor(Math.random() * (max - min + 1)) + min; | |
const q = `#K${(i + 1).toString().padStart(2, 0)}${Math.ceil(n / 3)}${((n - 1) % 3 + 1)}` | |
document.querySelector(q).checked = true; | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment