Noise is another special effect to emulate an old TV without a signal. A naive approach to do this graphic effect is to create a double for-loop and randomize the color of the pixel being placed on each of the coordinates of the screen.
for (y = 0; y < MAX_SCREEN_HEIGHT; ++y)
for (x = 0; x < MAX_SCREEN_WIDTH; ++x)
putPixel(x, y, RBGA(rand()%256, rand()%256, rand()%256, rand()%256));
This will work but not as fast as we would like it to be due to the following reasons: