local random = math.random(0.25,1)
print(random)
what is going on?
uhh edit: it happens no matter where I put it, in a function or not
local random = math.random(0.25,1)
print(random)
what is going on?
uhh edit: it happens no matter where I put it, in a function or not
math.random only deals in whole numbers. If you want .25 as a possible result try this.
local random = math.random(25,100)/100
print(random)
Reaaalllyyy??? I swear i’ve used math.random for small numbers before!
anyways thanks the script works
Sorry for bumping in when it’s already been solved, but if you want another way you can use Random.new():NextNumber(min, max)
because it can return random decimals by default. math.random
will only ever return integers.