Random Number

Post Reply
Darmir
Posts: 226
Joined: Sun May 01, 2011 6:51 pm
Contact:

Random Number

Post 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?

User avatar
Omit
Posts: 190
Joined: Sun Aug 01, 2010 10:54 pm
Location: Middle Earth
Contact:

Re: Random Number

Post by Omit »

local myVar=math.random (1,20)*.1

Darmir
Posts: 226
Joined: Sun May 01, 2011 6:51 pm
Contact:

Re: Random Number

Post by Darmir »

Thanks Omit

Post Reply