 void loop()
 {
   // randomly determine which behavior
-  switch (random(2)) {
+  int behaviorMode = random(4);
+  Serial.print("BEHAVIOR MODE:\t");
+  Serial.println(behaviorMode);
+
+  switch (behaviorMode) {
     case 0:
-      currAngle = oscillateGently(currAngle, random(5, 10));
+    case 1:
+    case 2:
+      currAngle = oscillateGently(currAngle, random(3, 6));
       break;
 
-    case 1:
-      currAngle = shakeServo(currAngle, random(4));
+    case 3:
+      currAngle = shakeServo(currAngle, random(2, 4));
       break;
   }
 

{
  for (int ii = 0; ii < numOscillations ; ii += 1) {
    delay(TURN_AROUND_DELAY);
    //  Serial.println("------------------------------------------------------------");
  
    digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
    angle = turnServo(myservo, angle, random(angle, RIGHT_LIMIT - SHAKE_OFFSET_ANGLE) + 1, GENTLE_DELAY);
  
    delay(TURN_AROUND_DELAY);
    //  Serial.println("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
  
    digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
    angle = turnServo(myservo, angle, random(SHAKE_OFFSET_ANGLE, angle), GENTLE_DELAY);
  }

  return angle;

//
const double RADIANS_PER_DEGREE = 0.0174532925;

const int LEFT_LIMIT = 90;
const int RIGHT_LIMIT = 180;

// milliseconds to wait between servo movement: when servo is gently oscillating
const int GENTLE_DELAY = 30;
