I need to randomly select a color for a brick, but not any color, it has to be one of a specific list of colors. Let's say there are five colors ("color1", "color2" ...), what is the easiest way to pick one of them?
Do
colors = {color1, color2, color3} chosencolor = colors[math.random(1, #colors)]