blinking 6 leds without a delay. one after the other

hello! Am new in programming.

Am trying to write a code to blink 6 leds without a delay. they must blink one after the other.

The code work… but they blink at the same time

chip: arduino nano

lab_5_2017_1.1.ino (723 Bytes)

int ledPin [] = {2,3,4,5,6,7};
long temps = random(500,3000);
int i;
boolean etat_led[]={0,0,0,0,0,0};
unsigned long previousMillis[6];

void setup() {
 Serial.begin(9600);
 for (i =0; i<6; i++){
 pinMode(ledPin[i], OUTPUT);
}}

void loop() {

unsigned long currentMillis =millis();

   
  
  for (i =0; i<6;i++){ 
    
  if (etat_led[i] ==HIGH && currentMillis - previousMillis[i]>= temps){
         previousMillis[i] = currentMillis;
   
    etat_led[i]=LOW;
     digitalWrite(ledPin[i],etat_led[i]);
     
     } 
  else if(etat_led[i] ==LOW && currentMillis - previousMillis[i]>= temps){
    previousMillis[i] = currentMillis;
    
   {
    etat_led[i]=HIGH;
     digitalWrite(ledPin[i],etat_led[i]);
     
    } }}}

Simple indentation may make your problem more apparent.

How should your LEDs start blinking at different times?