local c=0
print("--------------------------") --"divider"
print(letters)
for i, v in pairs(words) do
if v:find(letters)
and string.len(v) >= wordGui.flags.maxlen
and string.len(v) <= wordGui.flags.minlen
then
print(#v, v)
c = c+1
if c == wordGui.flags.maxWords then
break
end
end
end
if c == 0 then
print("No Words Found :(")
end
allow me to explain what some things are because i left some info out.
letters = a string of random letters (variable defined outside of this parcel)
words = a dictionary full of words (it works)
maxlen = max length of word (number) minlen = min length of word (number) maxWords = max number of words printed
Currently, it will usually return a list of words that contains (letters) in alphabetical order. However, I want it to give me the words with (letters) present, but in random order instead of mostly just words that begin with A.
