 
 void loop()
 {
-  oscillateGently();
+  // oscillateGently();
+
+  currAngle = shakeServo(currAngle, random(5));
+  delay(3000);
 }
 
 void oscillateGently()

//
const double RADIANS_PER_DEGREE = 0.0174532925;

const int LEFT_LIMIT = 20;
const int RIGHT_LIMIT = 130;

// milliseconds to wait between servo movement
const int GENTLE_DELAY = 30;

// maximum servo movement per iteration
const int ANGLE_INCREMENT = 3;

//
int shakeServo(int startAngle, int numShakes)
{
  const int offCenter = 25;

  int rightEnd = startAngle + offCenter;
  int leftEnd = startAngle - offCenter;

  turnServo(myservo, startAngle, rightEnd, SHAKE_DELAY);
  turnServo(myservo, rightEnd, leftEnd, SHAKE_DELAY);
  for (int ii = 0; ii < numShakes ; ii++)
  {
    turnServo(myservo, leftEnd, rightEnd, SHAKE_DELAY);
    turnServo(myservo, rightEnd, leftEnd, SHAKE_DELAY);
  }
  turnServo(myservo, leftEnd,  startAngle, SHAKE_DELAY);

  return startAngle;
}
