Random timer delay not being random

OK, so i have these 10 objects that fly onto the screen. I want each one to come on at a different, random time. I made this timer to run through the function that spawns them at random intervals.
Heres the problem:
The only delay which is random is the initial delay at the beginning before any objects come onto the screen, after that, they fly on at set intervals. How do I make the objects come at random intervals after each other?
So i want each spawn to happen after a random interval of between 1 and 6 seonds. The code below just chooses a random number, and keeps that number to delay each object by. I want it to choose a different, random number each time.
Any ideas would be appreciated :slight_smile:

Heres my code for the timer:

[code]
local redtimer_bottom = timer.performWithDelay((rand(1000, 6000)), spawn, 10) [import]uid: 86598 topic_id: 14388 reply_id: 314388[/import]

it only randomize the time the first time timer.performWithDelay is called
do something like this instead:

[lua]for i=1, 10 do
timer.performWithDelay(( math.random (1000, 6000)), spawn)
end
[import]uid: 13632 topic_id: 14388 reply_id: 53175[/import]

OMG i am worshipping you right now :DDD
thank you so much :slight_smile: [import]uid: 86598 topic_id: 14388 reply_id: 53176[/import]