The answer above is well over a year now, as of August 16, 2021.
(Just adding more context, for newer developers)
Can you use decimals in Random functions?
The short answer is NO. The reason behind this is because, when this function is called below 0, i.e decimals it cannot return decimals, (only integers), it will always return 0, same goes with the math.random function. math.random and Random both have the same type of algorithm, so it's better to use math.random, since I believe it has a little more functionality.
Quick Note: Random.new returns a seed, what is a seed? A seed is a positive integer that initialises a random number generator.
When math.random() is called without any parameters like this:
print(math.random()) it will return a decimal between 0 and 1.
##Resources:
Random - ROBLOX Developer Hub
Math functions - ROBLOX Developer Hub
4 comments
thanks
nvm was gonna ask something
Upvoted, answered the best way. Was going to post the same but it turned out you did before me.
Added more of an explanation a year later, from January 23, 2020 to August 16, 2021