AnsweredAssumed Answered

Random Pairings of Teams/Individuals

Question asked by adhutchinson on Jul 6, 2013
Latest reply on Jul 14, 2013 by adhutchinson

Title

Random Pairings of Teams/Individuals

Post

     I've been working on a Sports Competition Manager.  There are multiple leagues, with different teams within each league, and I am trying to find a way of automating the match schedule (games, team 1 v team 2, etc) so that I don't have to do it manually.

     I have a script that creates the number of matches automatically.  I would like the Home and Away Team Fields to be automatically populated in a "Random" order, so that every team will play each other team once in a given cycle of fixtures, which would then begin repeating after everyone has been matched up once, if required.

     Also, if the number of teams is odd, I'd need there to be a Bye for one team.

     Any Ideas?

Outcomes