I was laying in bed a few minutes ago and I got what I thought was a good idea. (And I still do hehehe.) So, I'm using string.char() for an encryption system, it seems like it'd work for what I'm planning to do. For efficiency, I'd like to use some code that will put all values in a table between the values of 97 and 122. How could I do this?
COMMUNITY QUESTION
How do I get all values between two values?
1 answer
Ugh, I'm so silly and simple-minded. Got some code.
local char = 96
repeat
wait()
char = char + 1
table.insert(chars, char)
until char == 122
for i,v in pairs(chars) do
print(v)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
