Minecraft wiki entry for spreadplayers, associated text: spreadplayers <center> <spreadDistance> <maxRange> <respectTeams> <targets>
spreadplayers <center> <spreadDistance> <maxRange> under <maxHeight> <respectTeams> <targets>
Spreads players to resulting position under the maximum height.