execute store result score random itemcount run random value 1..3
execute if score random itemcount matches 1 run enchant @s survivalplus:player_smite 1
execute if score random itemcount matches 2 run enchant @s survivalplus:player_smite 2
execute if score random itemcount matches 3 run enchant @s survivalplus:player_smite 3