Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Math Random Help?

here's my script:

math.random(1,300)

So the 1,300 means that every 300 studs there will be one of the topic, right?

thanks.

1 answer

✓ Accepted answer

'one of the topic', What?? I don't know what you mean by that but math.random takes two arguments, the first one is the minimal number and the second is the maximum number. math.random chooses a random number in the scope of these arguments

math.random(1,2) --1 or 2
math.random(1,3) --1, 2, or 3
math.random(1,4) --1, 2, 3, or 4
--You get the idea--

math.random(3,962) --Number between 3 and 962.

--So...
math.random(1,300) --A random number between 1 and 300

1 comment

0

thanks! :)D

This discussion is preserved as it was. New answers, comments, and votes are closed.