Basically I am trying to "blink an eye." The servo is connect to an eyelid and I want it to blink all the open or closed. I have a randomized code that moves the servo to random locations. How would I go about coding this to move it randomly from closed to open without stopping in the middle?

void setup(){ myservo.attach(9);}void loop(){ state = random(2); if (state) myservo.write(115); //open else myservo.write(65); //close delay(random(50, 500));}This will randomly either close, or open the eye, and wait a random delay. If you want the numbers to be very random, use http://code.google.com/p/tinkerit/wiki/TrueRandom.