execute store result score random itemcount run random value 1..5
execute if score random itemcount matches 1 run playsound minecraft:entity.enderman.scream hostile @s ^ ^ ^-3 .5
execute if score random itemcount matches 2 run playsound minecraft:entity.endermite.ambient hostile @s ^ ^ ^-3 .5
execute if score random itemcount matches 3 run playsound minecraft:entity.ender_dragon.ambient hostile @s ^ ^ ^-3 .1
execute if score random itemcount matches 4 run playsound minecraft:entity.ender_dragon.growl hostile @s ^ ^ ^-3 .1