kill @e[tag=rand_item]
execute if score max_rand items_generic matches 1.. run summon marker 1 47 6 {Tags:["rand_item","1"]}
execute if score max_rand items_generic matches 2.. run summon marker 1 47 6 {Tags:["rand_item","2"]}
execute if score max_rand items_generic matches 3.. run summon marker 1 47 6 {Tags:["rand_item","3"]}
execute if score max_rand items_generic matches 4.. run summon marker 1 47 6 {Tags:["rand_item","4"]}
execute if score max_rand items_generic matches 5.. run summon marker 1 47 6 {Tags:["rand_item","5"]}
execute if score max_rand items_generic matches 6.. run summon marker 1 47 6 {Tags:["rand_item","6"]}
execute if score max_rand items_generic matches 7.. run summon marker 1 47 6 {Tags:["rand_item","7"]}
execute if score max_rand items_generic matches 8.. run summon marker 1 47 6 {Tags:["rand_item","8"]}
execute if score max_rand items_generic matches 9.. run summon marker 1 47 6 {Tags:["rand_item","9"]}
execute if score max_rand items_generic matches 10.. run summon marker 1 47 6 {Tags:["rand_item","10"]}
execute if score max_rand items_generic matches 11.. run summon marker 1 47 6 {Tags:["rand_item","11"]}
execute if score max_rand items_generic matches 12.. run summon marker 1 47 6 {Tags:["rand_item","12"]}