I'm attempting to solve one of my previous queries and in order to have a breakthrough all I need to know is if it's possible to search through an entire table and store a random key within a variable while ignoring it's number values.
For example using this table I would like to randomly output one of the dictionary names such as Apples or Cabbages (quotations if possible) but NOT its number values.
Is this possible with tables or should I use a seperate modified table or array?
ExampleTable = {
["Apples"] = 0,
["Berries"] = 32,
["Cabbages"] = 5,
["Daikons"] = 89,
["Eggs"] = 9
}
RandomKeySelector =
print("The random food item is",RandomKeySelector)

2 comments
Too much work. Too bloated. Could have all been done in a single function call.
Edited.