execute store result score random time run random value 1..2
execute if score random time matches 1 run item replace entity @s armor.head with diamond_helmet[unbreakable={}]
execute if score random time matches 2 run item replace entity @s armor.head with iron_helmet[unbreakable={}]

execute store result score random time run random value 1..2
execute if score random time matches 1 run item replace entity @s armor.chest with diamond_chestplate
execute if score random time matches 2 run item replace entity @s armor.chest with iron_chestplate

execute store result score random time run random value 1..2
execute if score random time matches 1 run item replace entity @s armor.legs with diamond_leggings
execute if score random time matches 2 run item replace entity @s armor.legs with iron_leggings

execute store result score random time run random value 1..2
execute if score random time matches 1 run item replace entity @s armor.feet with diamond_boots
execute if score random time matches 2 run item replace entity @s armor.feet with iron_boots