I thought that when I did math.Random(0,1) it included the decimals but no it didn't it only does 1, or 0 is ther any way to make it include decimals?
✓ ANSWER ACCEPTED
How do I make math.Random(0,1) include decimals?
2 answers
✓ Accepted answer
Decimals depends on the arguments you provide, math.random(lower, upper) will generate an integer between lower and upper. You can read what it does here. If you call it without parameters you will get decimals between 0 and 1. You need to combine these calls.
I also suggest you use the new Random type instead of the math library due to it's better implementation but also because it allows you to do it in one call with NextNumber.
1 comment
0
I have no idea why OP didn't accept your answer. I accepted it for you
Just do
print(Math.Random(0,10) / 10)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Research goes a long way. https://developer.roblox.com/articles/Lua-Libraries/math#random
https://scriptinghelpers.org/questions/40983/how-do-i-make-a-mathrandom-with-decimals