Front lights to flicker for halloween

I am trying to set my front wall lights to intermittently flick off and on to look creepy for Halloween. I’ve seen how make light blink like Christmas lights. Is this possible to do? Thanks

This thread has code to alternately turn on/turn off the wave pumps on a fish tank. You could modify it for your lights:,5865.msg34739.html#msg34739