Blinking LEDs for a set number of times followed by another action

:roll_eyes:I think the random() function on arduino should work well for this!
Here is an example:
long randNumber;

void setup(){
Serial.begin(9600);

// if analog input pin 0 is unconnected, random analog
// noise will cause the call to randomSeed() to generate
// different seed numbers each time the sketch runs.
// randomSeed() will then shuffle the random function.
randomSeed(analogRead(0));
}

void loop() {
// print a random number from 0 to 299
randNumber = random(300);
Serial.println(randNumber);

// print a random number from 10 to 19
randNumber = random(10, 20);
Serial.println(randNumber);

delay(50);
}

Instead of printing the numbers you may use array for the leds with constrain() function to set the max and min , and use the random numbers!