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

Is there a way to make math.random go through decimals?

Asked by 8 years ago

What I mean is can you have
math.random go through decimals like a random number between 1.1, and 400.1?

2 answers

Log in to vote
0
Answered by 8 years ago

Yes, you can do this. To make this possible, you would do something like this: local Number = math.random()*400 Now, you may want to look this up on the wiki too, about math.random. They may be of better help than I.

1
math.random()*400 + .1 ****** DigitalVeer 1473 — 8y
Ad
Log in to vote
0
Answered by 8 years ago

print(math.random(11,4001)/10)

0
Please explain when you give answers on questions. alphawolvess 1784 — 8y

Answer this question