Jump to content

random words


Castillo

Recommended Posts

hey there, i wish that someone could give me a example of how to make a random word, like in 5 minutes outputs to chat box "first one type ASO8 win the contest" and when he types it outputs who did it and that he won. could someone give me a hand?

Thanks

Link to comment
function createRandomWord()
local str=""
for L=1,math.random(6,12) do
local randchar=string.char(math.random(100,122))
if math.random(1,2)==2 then
        randchar=string.upper(randchar) 
end
     str=str..randchar
end
return str
end

im not sure is char number bounds right

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...