Here’s an example that might get you headed in the right direction. Create a null object and put it at the bottom of the layer stack (below your grid layers). Apply a slider control to the null and apply this expression to it:
posterizeTime(3); //3 flashes per second
Math.floor(random(thisComp.numLayers – 1)) + 1
Apply this expression to the Opacity property of each of your grid layers:
if (thisComp.layer(“Null 1”).effect(“Slider Control”)(“Slider”) == index)0 else 100;
One grid layer at a time should flash randomly at the frequency set in the posterizeTime statement. This assumes your null layer is named “Null 1” and that it is the only layer in the comp besides your grid layers. You’d have to adjust things to accomodate your setup, and whatever property you want to affect.
Basically, the slider control is “publishing” a random layer number of the layer that should flash.
Dan