New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 4 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 4 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 1457 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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

0
Please explain when you give answers on questions. alphawolvess 1754 — 4y

Answer this question