Page 1 of 1

Random Number

Posted: Thu Jan 05, 2012 5:56 pm
by Darmir
Hey all,
I want to get a random number between 0.1 and 2.0. I have tried the math.random function but it seems it only does whole numbers. Anybody know how to do this?

Re: Random Number

Posted: Thu Jan 05, 2012 6:36 pm
by Omit
local myVar=math.random (1,20)*.1

Re: Random Number

Posted: Thu Jan 05, 2012 8:18 pm
by Darmir
Thanks Omit