function rng:percentage
scoreboard players set #tmp luck 2
scoreboard players operation out rng *= #tmp luck
scoreboard players operation out rng += @s luck
scoreboard players operation out rng /= #tmp luck

execute if score active shop matches 1 if score out rng matches 80.. run function items:shop/summon/meta_coin
