execute store result score #Global random run random value 6..8000
execute if score #Global random matches 10 run function template:summon_af
execute if score #Global random matches 567 run kill @e[tag=AI]