What I would do is use the size of the table and randomize that rather worry about a chance ratio.
local config = {
[9808] = { -- Common Rusty Armor
[1] = {id = 2464, name = "Chain Armor", chance = 6994},
[2] = {id = 2483, name = "Scale Armor", chance = 3952},
[3] =...