View Single Post
10-21-12, 01:20 AM   #15
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Code:
				if message == mystring then
					timeUntilNextMessage = random(300, 330)
A função random aceita dois números, e retorna um número aleatório que é >= o primeiro número e <= o último número. Caso só fornecem um número, como onde você usá-lo para selecionar uma mensagem da tabela, e retorna um número aleatório que é >= 1 e <= o número.

(The random function accepts two numbers, and return a random number that is >= the first number and <= the second number. If you only provide one number, like you do when you use it to pick a message from the table, it returns a random number that is >= 1 and <= the provided number.)
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote