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 leather_helmet[unbreakable={}]
execute if score random time matches 2 run item replace entity @s armor.head with golden_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 leather_chestplate
execute if score random time matches 2 run item replace entity @s armor.chest with golden_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 leather_leggings
execute if score random time matches 2 run item replace entity @s armor.legs with golden_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 leather_boots
execute if score random time matches 2 run item replace entity @s armor.feet with golden_boots