Java 26.2
Spread Players
Spread Plan
Place @a between 8 and 32 blocks from (0, 0).
/spreadplayers 0 0 8 32 false @a
Scatter targets across an area
The /spreadplayers argument order — center, spacing, range, then targets — is easy to scramble, and the difference between minimum spacing and max range decides whether players land clustered or scattered across the map. Fill each value here, keep teams together when you mean to, and copy a command that parses first try.
Java 26.2
Place @a between 8 and 32 blocks from (0, 0).
/spreadplayers 0 0 8 32 false @a