local nameList = {"Maxime", "Ivan", "Ian", "Luna", "Wes"} local var = {} for _, v in pairs(nameList) do var[v .. "_age"] = math.random(1,100) end print(var.Ian_age)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)