Math.random aproximating?!

So, I was trying to get random numbers between 0.05 and 1.95, and for some reason, it just aproximates it to 0 or to 1.
Why? Is there any way to do it? I´m doing something wrong?

print(math.random(0.05, 1.95))

math.random cannot use values lower than 1

try random.new Random | Roblox Creator Documentation

Try:

print(math.random(5, 195) / 100))
1 Like

thanks! I didn’t thought about doing it that way!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.