During all but the first round, competitors are paired based on approximately how they have performed so far. In the first round, competitors are paired either randomly or according to some pattern that has been found to serve a given game or sport well. If it is desired for top-ranked participants to meet in the last rounds, the pattern must start them in different brackets, just the same as is done in seeding of pre-ranked players for a single elimination tournament. In subsequent rounds, competitors are sorted according to their cumulative scores and are assigned opponents with the same or similar score up to that point. The pairing rules have to be quite complicated, as they have to ensure that no two players ever oppose each other twice, and to avoid than a player may have some advantage as a result of chance.