Random bulbs on/off animation....

Hello friends i am a newbie to maxscript.....i am stuck in my project of random bulb on/off animation..... i have created animation of 49 bulbs animating randomly in the air .... and i have created two corona shaders ..... glass shader which is off and corona light material which will turn on the bulbs.....

But i need a script where both these materials are applied randomly to all the bulbs ...mostly the bulbs are off .... but in some random frames they turn on meaning they are assigned light material....instead of glass shader....

Please if anybody can help me.... i am really stuck here....