posterizeTime(3); // in fps
random(100)>50 ? 100 : 0;
If you preceed any expression with a “posterizeTime”, you will limit how many times per second the value is updated.
The second line is shorthand for:
if a random number from 0-100 > 50, then opacity=100 else opacity=0
If you need to, you can pickwhip the value inbetween the brackets of posterizeTime to an expression control slider.
That way you can alter the framerate dynamically.
But it would be best to use Hold keyframes on the value of that slider to jump from say 3fps to 2 fps, because the it will not interpolate intuitively.