Created
August 12, 2011 13:04
-
-
Save bittersweetryan/1141990 to your computer and use it in GitHub Desktop.
cfffl draft order
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
<cfscript> | |
teams = ["Airmen", | |
"CF Knights", | |
"Fighting Amish", | |
"Slypigs", | |
"Code Assassins", | |
"DoWorkSon", | |
"Vox Pop Cabal", | |
"CFDestructors", | |
"Springfield Isotopes", | |
"SD Benthers", | |
"Pittsburgh Marauders", | |
"Cooley's Cavalry"]; | |
order = []; | |
while(arrayLen(teams)){ | |
seed = randRange(1,arrayLen(teams),"SHA1PRNG"); | |
order[arrayLen(order) + 1] = teams[seed]; | |
arrayDeleteAt(teams,seed); | |
} | |
writeDump(order); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment