Lighting animation, dancing lights

hi everybody, i have many lights in a scene that need to turn on and off over time, but not the same time , there should be variation or time offset for each one of them … this simple maxscript code is what I have ended up with as a test but can’t figure out about time variation for each
please take a look into the link: https://www.youtube.com/watch?v=AOVsLSV6UZ4
… any help is much appreciated … thanks …

point_lights = selection

with animate on (

for i = animationRange.start to animationRange.end do

(

v = 1

sliderTime = i

t = slidertime as float

f = sin (t * 0.04) * v

for j = 1 to point_lights.count do

( --ran = (random 1 to 9) * 0.1

point_lights[j].multiplier = f

)

)

)