scoreboard players set min rng 1
scoreboard players set max rng 6
function rng:interval

execute if score out rng matches 1 run summon item ~ ~ ~ {Item:{id:"splash_potion",Count:1b,tag:{Potion:"healing"}}}
execute if score out rng matches 2 run summon item ~ ~ ~ {Item:{id:"splash_potion",Count:1b,tag:{Potion:"strong_healing"}}}
execute if score out rng matches 3 run summon item ~ ~ ~ {Item:{id:"splash_potion",Count:1b,tag:{Potion:"swiftness"}}}
execute if score out rng matches 4 run summon item ~ ~ ~ {Item:{id:"splash_potion",Count:1b,tag:{Potion:"regeneration"}}}
execute if score out rng matches 5 run summon item ~ ~ ~ {Item:{id:"splash_potion",Count:1b,tag:{Potion:"strong_regeneration"}}}
execute if score out rng matches 6 run summon item ~ ~ ~ {Item:{id:"splash_potion",Count:1b,tag:{Potion:"weakness"}}}
