Here is what I wrote:
local pos = math.random(0.06,0.65)
math.random()
only takes integers. If you wish to have a randomly generated decimal you need to divide the generated integer by a certain number. For example, to get a random decimal from 0.06 to 0.65:
local num = math.random(6, 65) / 100
Your script is correct.