Hi, i have one table with some words (ex. A ={cat,dog,hamster}) and i want pick one of this words like a string randomly, how can i do this? I think solution is on the surface
function setup()
A ={"cat","dog","hamster"}
print("touch screen for random word")
end
function touched(t)
if t.state==BEGAN then
v=math.random(#A)
print(A[v])
end
end