Question about math.random

I am very new to CoronaSDK and I am having an issue with my objects clumping together.

I have 9 objects entering the frame on the y axis, they are all entering at differnet postions using math.random, but they seem to be clumping together. I was wondering if there was a way to make them not touch at all?

Here is the code I am using

function moveBars(self, event)
    if self.x < -1500 then
        self.x = 2700
        self.y = math.random(10, 1000)
    else
        self.x = self.x - self.speed
    end
end

Thanks!

Did you seed the random number generator?   Maybe you got a bad seed and the (pseudo-)random numbers are in a loop.

Can you also post your config.lua so we can see what kind of content area you’re using?

Did you seed the random number generator?   Maybe you got a bad seed and the (pseudo-)random numbers are in a loop.

Can you also post your config.lua so we can see what kind of content area you’re using?