Random fade in and fade out

I have a background picture covered with black squares(which are movieclips) that I want to randomly or at least aparently randomly fade in and fade out never exposing more than a part of the picture that is hidden behind these squares. Does anyone have an idea of how I can accomplish this effect with actionscript?