Light emission - light on or off

Hi :wave:
First of all,this is my first post on this forum, I’m really sorry if the question has already been asked, I wasn’t able to find the answer…
I know I can use the “random” output of an “object info” node connected to the input of an “emission” node to create some lighting intesity variations but how can I set it up to be just true or false , “on or off” or maybe “on, half strength, off” ?

One more thing: using these random intensity emissive material in arrays is not possible, is it ?

I’m looking for the best way to light up (randomly) windows of distant buildings in a scene, that’s why I’m asking this. I’ve also been experimenting with static grid particles.

Thanks !