execute store result score #num temp run random value 1..50
$execute if score #num temp matches 2.. at @a[sort=random,limit=5,tag=playing,gamemode=!spectator] run summon zombie ~$(x) ~$(y) ~$(z) {DeathLootTable:"none",Health:14f,Tags:["random_zombie","in_air"],equipment:{legs:{id:"minecraft:sunflower",count:1,components:{"minecraft:item_name":{color:"white",italic:false,text:"Coin"},"minecraft:custom_data":{coin:1b,one:1b}}}},drop_chances:{legs:2.000},attributes:[{id:"minecraft:knockback_resistance",base:0.15},{id:"minecraft:max_health",base:14}]}
$execute if score #num temp matches 1 at @a[sort=random,limit=5,tag=playing,gamemode=!spectator] run summon creaking ~$(x) ~$(y) ~$(z) {DeathLootTable:"none",Health:32f,Tags:["random_zombie","in_air"],equipment:{legs:{id:"minecraft:sunflower",count:3,components:{"minecraft:item_name":{color:"white",italic:false,text:"Coin"},"minecraft:custom_data":{coin:1b,one:1b}}}},drop_chances:{legs:2.000},attributes:[{id:"minecraft:attack_damage",base:7},{id:"minecraft:attack_knockback",base:6},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:32},{id:"minecraft:movement_speed",base:0.6},{id:"minecraft:step_height",base:1}]}