This is my function
function randomNum2(num)
f = io.open("result.csv", "a+")
num = math.randomseed(os.clock()*100000000000)
f:write(string.format("%s\n", num))
f:close()
return "TETB"..(math.random(1000000000))
end
The output from result.csv
file like.
nil
nil
nil
nil
nil
nil
nil
nil
nil
I would like to know how to save a random number to result.csv
file like this.
TETB539286665
TETB633918991
TETB892163703
TETB963005226
TETB359644877
TETB131482377
Any ideas on what the problem is and how to fix it? Thanks.