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
4 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
4 years ago
local s = math.random()

random number from (i think) 100

0
random number from range: [0,1) theking48989987 2147 — 4y
Ad
Log in to vote
0
Answered by 4 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 — 4y
Log in to vote
0
Answered by
mateyz 22
4 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