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))
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))
Try:
print(math.random(5, 195) / 100))
thanks! I didn’t thought about doing it that way!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.