Castillo Posted April 1, 2010 Share Posted April 1, 2010 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
karlis Posted April 1, 2010 Share Posted April 1, 2010 (edited) 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 April 2, 2010 by Guest Link to comment
Castillo Posted April 2, 2010 Author Share Posted April 2, 2010 Ok, thanks karlis for the example, now i have how to start Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now