How to make flashing/blinking/flickering lights?

Is there any way to make my directional light flicker, flash or blink on and off repeatedly?

Thanks in advance!

I would probably use Random.Range to generate a random number each frame and then animate the light based on that.

Something like this (probably after some major tweaking):

randNmbr = Random.Range(-1.0, 1.0);

light.intensity += randNmbr;

if(light.intensity > 1.0)
    light.intensity = 1.0;

if(light.intensity < 0.0)
    light.intensity = 0.0;