It’s completely discretionary and ultimately up to tournament organisers.
If there are “big” players involved, organisers will typically seed them seperate for an inevitable clash in finals.
Some organisers might stick to a stat-based approach, where they seed based on previous performance.
Or the organisers might opt for a roulette seed.
Or a combination of everything above.
Latest Answers