Selecting a random string from a table

I am looking for a very simple thing, i want to have a table with multiple strings and select one of them at will, to make a death screen, the thing is i forgot how to do it.

Any help is appreciated, thanks.

3 Likes

The “standard” way to do something like this is just

tbl[math.random(1,#tbl)]

Where tbl is the table

16 Likes