     myservo.write(angle);
 
     Serial.print("\t");
-    rndDelay();
+    rndDelay(4000, 6000);
 
     Serial.print("\t");
     int rightValue = readDetector(DETECTOR_RIGHT, "right");

      // right side movement
      angle = random(angle, angle + variation);
    }
    else {
      break;
    }

  Serial.print("\t");
}

void rndDelay(int loBound, int hiBound)
{
  int ms = random(loBound, hiBound);

  Serial.print("delay:");
  Serial.print(ms);
