Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to generate a random number?

Asked by
luaa233 37
5 years ago

i dont have any code for this so can someone please help

3 answers

Log in to vote
0
Answered by
KDarren12 705 Donator Moderation Voter
5 years ago
local s = math.random()

random number from (i think) 100

0
random number from range: [0,1) theking48989987 2147 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

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.

0
i said i dont have a code cause i jusst want to know what it is like jesus luaa233 37 — 5y
Log in to vote
0
Answered by
mateyz 22
5 years ago

If you want to get a number between x and y, use the following code;

local number = math.random(1,100)
print(number)

Answer this question