The table is identical to what you had before, however you're now actually referring to that table and not some other, non existant one. You were also trying to pass the table as an argument to random, rather than its length.
This should work:
Code:
local trash = {
"test 1",
"test 2",
"test 3",
}
SendChatMessage(trash[random(#trash)], "SAY")
(also, no need to explicitly pass nil since it's the last argument)