How to make a script that chooses between image ids

How can I make a script that randomly chooses between image ids

local IdTable = {} -- Fill with Ids.
local ImageLabel = -- Path to ImageLabel.

ImageLabel.Image = IdTable[math.random(1, #IdTable)]
local ImageIDs = {yourdecalid, anotherdecalid}
local Prefix = "rbxassetid://"

local Image = PathToImage

Image.Image = Prefix..ImageIDs[math.random(1, #ImageIDs)]

Make sure its a local script