     decoder.setFileReadCallback(fileReadCallback);
     decoder.setFileReadBlockCallback(fileReadBlockCallback);
 
+#if (START_WITH_RANDOM_GIF == 1)
     // Seed the random number generator
     randomSeed(analogRead(14));
+#endif
 
     Serial.begin(115200);
     Serial.println("Starting AnimatedGIFs Sketch");

            // Calculate time in the future to terminate animation
            futureTime = millis() + (DISPLAY_TIME_SECONDS * 1000);
        }
    }

    decoder.decodeFrame();

void loop() {
    static unsigned long futureTime;

#if (START_WITH_RANDOM_GIF == 1)
    static int index = random(num_files);
#else
     static int index = 0;
#endif   

    if(futureTime < millis()) {
        if (openGifFilenameByIndex(GIF_DIRECTORY, index) >= 0) {
            // Can clear screen for new animation here, but this might cause flicker with short animations
            // matrix.fillScreen(COLOR_BLACK);
