scoreboard players add @e[tag=cage] cageID 0

scoreboard players set teams gameInfoValues 2

execute as @e[type=marker,tag=cage,sort=random,tag=team1,scores={cageID=0},limit=1] run function subchronos:game/starting/cages/spread_players/assing_id {"score":"cageID"}
execute as @e[type=marker,tag=cage,sort=random,tag=team2,scores={cageID=0},limit=1] run function subchronos:game/starting/cages/spread_players/assing_id {"score":"cageID"}
execute as @e[type=marker,tag=cage,sort=random,tag=team1,scores={cageID=0},limit=1] run function subchronos:game/starting/cages/spread_players/assing_id {"score":"cageID"}
execute as @e[type=marker,tag=cage,sort=random,tag=team2,scores={cageID=0},limit=1] run function subchronos:game/starting/cages/spread_players/assing_id {"score":"cageID"}
execute as @e[type=marker,tag=cage,sort=random,tag=team1,scores={cageID=0},limit=1] run function subchronos:game/starting/cages/spread_players/assing_id {"score":"cageID"}
execute as @e[type=marker,tag=cage,sort=random,tag=team2,scores={cageID=0},limit=1] run function subchronos:game/starting/cages/spread_players/assing_id {"score":"cageID"}
execute as @e[type=marker,tag=cage,sort=random,tag=team1,scores={cageID=0},limit=1] run function subchronos:game/starting/cages/spread_players/assing_id {"score":"cageID"}
execute as @e[type=marker,tag=cage,sort=random,tag=team2,scores={cageID=0},limit=1] run function subchronos:game/starting/cages/spread_players/assing_id {"score":"cageID"}