$execute store result storage sound pitch float 0.01 run random value $(range)
$data modify storage sound name set value $(sound)
$data modify storage sound volume set value $(volume)
execute at @s run function main:mechanics/damage/vfx/sound with storage sound