View Single Post
Old 01-22-11, 07:07 AM   #4
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 317
Code:
/script local a,msg={},"Weekly Lotto Numbers are:" for b = 1,4 do local c = math.random(10) while a[c] do c = math.random(10) end a[c]=1 msg=msg.." "..c end SendChatMessage(msg, "GUILD")
Prints the expected output, "Weekly Lotto Numbers are: n n n n", to guild-chat.
__________________
Oh, the simulated horror!
Ailae is offline   Reply With Quote