const int L = 3; const int I = 5; const int N = 4; const int K = 6; long randomTime; void setup() { pinMode(L, OUTPUT); pinMode(I, OUTPUT); pinMode(N, OUTPUT); pinMode(K, OUTPUT); } void loop() { MiamiMidnight(); } void singleOn(int delayTime) { digitalWrite(L, HIGH); delay(delayTime); digitalWrite(L, LOW); digitalWrite(I, HIGH); delay(delayTime); digitalWrite(I, LOW); digitalWrite(N, HIGH); delay(delayTime); digitalWrite(N, LOW); digitalWrite(K, HIGH); delay(delayTime); digitalWrite(L, HIGH); digitalWrite(I, HIGH); digitalWrite(N, HIGH); digitalWrite(K, HIGH); } void MiamiMidnight() { randomTime = random(1000, 10000); delay(randomTime); digitalWrite(K, LOW); delay(200); digitalWrite(K, HIGH); delay(400); digitalWrite(I, LOW); delay(200); digitalWrite(I, HIGH); delay(300); digitalWrite(K, LOW); delay(900); }