i dont have any code for this so can someone please help
✓ ANSWER ACCEPTED
how to generate a random number?
3 answers
✓ Accepted answer
local s = math.random()
random number from (i think) 100
1 comment
0
random number from range: [0,1)
This isn't a request site, please write something then ask for some help, chances are someone will rewrite it 10x better and working for you but for future reference, have some code ready.
1 comment
0
i said i dont have a code cause i jusst want to know what it is like jesus
If you want to get a number between x and y, use the following code;
local number = math.random(1,100)
print(number)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
http://lua-users.org/wiki/MathLibraryTutorial