user49279: How does one add a random DELAY between 10 and 20 seconds? 
For example in the following stepper logic I have a delay of 11 seconds - expressed in milliseconds as: delay(11000).
What would I need to add (or modify) so this is randomized between 10 and 20 seconds?
//#define IN1  8
//#define IN2  9
//#define IN3  10
//#define IN4  11

int Steps = 0;
boolean Direction = true;
unsigned long last_time;
unsigned long currentMillis ;
int steps_left=4095;
long time;

void setup()
{
Serial.begin(115200);
pinMode(IN1, OUTPUT); 
pinMode(IN2, OUTPUT); 
pinMode(IN3, OUTPUT); 
pinMode(IN4, OUTPUT); 


}
void loop()
{
  while(steps_left>0){
  currentMillis = micros();
  if(currentMillis-last_time>=1000){
  stepper(1); 
  time=time+micros()-last_time;
  last_time=micros();
  steps_left--;
  }
  }
   Serial.println(time);
  Serial.println("Wait...!");
  delay(11000);                     // delay timing
  Direction=!Direction;
  steps_left=4095;
}

Forgive the appearance of the code.  Everytime I post it gets butchered.  Hopefully it's understandable.

user27653: In setup(), add 
randomSeed(analogRead(0));

This reads the value of an analog input pin, which if not connected, will float to relatively random values between 0 and 1023. This "seeds" the random number generator so the pattern of random numbers you will get later doesn't always give the same results each time you start the sketch.
In your delay() call, just replace the fixed value with a call to the random(min, max) function, as:
delay(random(10000, 20000));


49279: <p>How does one add a random DELAY between 10 and 20 seconds? </p>

<p>For example in the following stepper logic I have a delay of 11 seconds - expressed in milliseconds as: delay(11000).</p>

<p>What would I need to add (or modify) so this is randomized between 10 and 20 seconds?</p>

<pre><code>//#define IN1  8
//#define IN2  9
//#define IN3  10
//#define IN4  11

int Steps = 0;
boolean Direction = true;
unsigned long last_time;
unsigned long currentMillis ;
int steps_left=4095;
long time;

void setup()
{
Serial.begin(115200);
pinMode(IN1, OUTPUT); 
pinMode(IN2, OUTPUT); 
pinMode(IN3, OUTPUT); 
pinMode(IN4, OUTPUT); 


}
void loop()
{
  while(steps_left&gt;0){
  currentMillis = micros();
  if(currentMillis-last_time&gt;=1000){
  stepper(1); 
  time=time+micros()-last_time;
  last_time=micros();
  steps_left--;
  }
  }
   Serial.println(time);
  Serial.println("Wait...!");
  delay(11000);                     // delay timing
  Direction=!Direction;
  steps_left=4095;
}
</code></pre>

<p>Forgive the appearance of the code.  Everytime I post it gets butchered.  Hopefully it's understandable.</p>
 27653: <p>In <code>setup()</code>, add </p>

<pre><code>randomSeed(analogRead(0));
</code></pre>

<p>This reads the value of an analog input pin, which if not connected, will float to relatively random values between 0 and 1023. This "seeds" the random number generator so the pattern of random numbers you will get later doesn't always give the same results each time you start the sketch.</p>

<p>In your <code>delay()</code> call, just replace the fixed value with a call to the <code>random(min, max)</code> function, as:</p>

<pre><code>delay(random(10000, 20000));
</code></pre>
