Created
April 25, 2018 14:24
-
-
Save chrisamaphone/5fe4666b6a479199d8970c52c3da6eb9 to your computer and use it in GitHub Desktop.
This file contains 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 randInt(max) { return Math.floor(Math.random()*max) } | |
function removeIdx(a,i) { return a.splice(i,1)[0] } | |
function removeRandom(a) { | |
var i = randInt(a.length); | |
return removeIdx(a,i) | |
} | |
var teams = [3,8,9,10,11,12,14,18,20,21,22,23,24,25]; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment