 
 void RunSequence()
 {
-  //sequence = ++sequence % 18;
-  sequence = 2;
-  EEPROM.write(EEPROM_SEQUENCE, sequence);
-
+  int sequence = random(0, 20);
+  
   if (sequence == 0) Sequence0();
   if (sequence == 1) Sequence1();
-  if (sequence == 2) Sequence0();
-  if (sequence == 3) Sequence9();
-  if (sequence == 4) Sequence0();
+  if (sequence == 2) Sequence2();
+  if (sequence == 3) Sequence3();
+  if (sequence == 4) Sequence4();
   if (sequence == 5) Sequence5();
-  if (sequence == 6) Sequence0();
+  if (sequence == 6) Sequence6();
   if (sequence == 7) Sequence7();
-  if (sequence == 8) Sequence0();
-  if (sequence == 9) Sequence2();
-  if (sequence == 10) Sequence0();
-  if (sequence == 11) Sequence10();
-  if (sequence == 12) Sequence0();
-  if (sequence == 13) Sequence8();
-  if (sequence == 14) Sequence0();
-  if (sequence == 15) Sequence6();
-  if (sequence == 16) Sequence0();
-  if (sequence == 17) Sequence4();
+  if (sequence == 8) Sequence8();
+  if (sequence == 10) Sequence10();
+  if (sequence > 10) DefaultSequence();
     
   delay(3000);
 }

  Sweep(lidServo, lidTo, lidFrom, 500);
}

void Sequence2()
{
  int lidMid = lidFrom  + lidRange * 0.90;
  int lidMid2 = lidFrom + lidRange * 0.68;

  
  pinMode(buttonPin, INPUT_PULLUP);     
  modeButton.attach(buttonPin);
  modeButton.interval(100);
  
  digitalWrite(6, HIGH);  // turn on motor power
  
  randomSeed(analogRead(A5));
}  
  
void loop() 
