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.