Random card selection using .png objects

A very very noobie.
Trying to learn and understand Lua. Had some experience with complex excel macros.
I want to select an object at random from a pile of 12 cards (.png files) and display. I can create the random numbers and can display specific .png files. But having difficulty with creating the array, selecting from it and then displaying the random .png picture.
Any help. More of a learning exercise in arrays than a specific project for distribution.
Ta [import]uid: 71355 topic_id: 11745 reply_id: 311745[/import]

[code] local imagens = {}
imagens[1] = “gelo”
imagens[2] = “clock”
imagens[3] = “potion”
imagens[4] = “potion2”
imagens[5] = “pena”
imagens[6] = “morcego”
imagens[7] = “gato”
imagens[8] = “chapeu”
imagens[9] = “aranha”
imagens[10] = “abobora”
imagens[11] = “caveira”
imagens[12] = “caveira2”

local index = math.random( #imagens )
tabItem.objeto = display.newImage( imagens[index] … “.png” )
tabItem.objeto.x = 0
tabItem.objeto.y = 0
tabItem.type = imagens[index] [/code]
something like that? [import]uid: 23063 topic_id: 11745 reply_id: 43040[/import]

Thanks so much. I was THAT close. Encouraging.
Cheers [import]uid: 71355 topic_id: 11745 reply_id: 43099[/import]

Or…

local images = { "gelo", "clock", "potion", "potion2", "pena", "morcego", "gato", "chapeu", "aranha", "abobora", "caveira", "caveira2" } [import]uid: 58455 topic_id: 11745 reply_id: 43207[/import]

Thanks davemikesell .
Even more clarification.
I understand. Help appreciated. [import]uid: 71355 topic_id: 11745 reply_id: 43686[/import]