If you are using light, u can key frame the intensity or write a "rand" expression for the intesity, have not plyed with it my self but you should be able to right click on intesity and select expression.