execute store result score random itemcount run random value 1..8
execute if score random itemcount matches 1 run data modify entity @s Item.components."minecraft:attribute_modifiers" append value {slot:"mainhand",type:"block_interaction_range",id:"5555",amount:1,operation:add_value}
execute if score random itemcount matches 2 run data modify entity @s Item.components."minecraft:attribute_modifiers" append value {slot:"mainhand",type:"block_interaction_range",id:"5555",amount:.75,operation:add_value}
execute if score random itemcount matches 3 run data modify entity @s Item.components."minecraft:attribute_modifiers" append value {slot:"mainhand",type:"block_interaction_range",id:"5555",amount:.5,operation:add_value}
execute if score random itemcount matches 4 run data modify entity @s Item.components."minecraft:attribute_modifiers" append value {slot:"mainhand",type:"block_interaction_range",id:"5555",amount:.25,operation:add_value}
execute if score random itemcount matches 5 run data modify entity @s Item.components."minecraft:attribute_modifiers" append value {slot:"mainhand",type:"block_interaction_range",id:"5555",amount:-.25,operation:add_value}
execute if score random itemcount matches 6 run data modify entity @s Item.components."minecraft:attribute_modifiers" append value {slot:"mainhand",type:"block_interaction_range",id:"5555",amount:-0.5,operation:add_value}
execute if score random itemcount matches 7 run data modify entity @s Item.components."minecraft:attribute_modifiers" append value {slot:"mainhand",type:"block_interaction_range",id:"5555",amount:-0.75,operation:add_value}
execute if score random itemcount matches 8 run data modify entity @s Item.components."minecraft:attribute_modifiers" append value {slot:"mainhand",type:"block_interaction_range",id:"5555",amount:-1,operation:add_value}
scoreboard players reset random