This is great! I ran a few simulations and the team averages were always very close. Nice!

The only issue I ran into so far is if I change the # of teams. For example, try the same table but with 4 teams (12 players). It ends up with two teams of 4 and two teams of 2.

If I tried 15 players, 4 teams it distributed players perfectly. However, 15 players, 5 teams did not work. I'm guessing due to the pairing.

I tried to look at the code, but it's above my head Is there a way to adjust this to compensate? Thanks in advance again!