//blinkonator 3000 by Mord

// pairs 2
int pair1a = 2;
int pair1b = 3;
int pair2a = 4;
int pair2b = 5;
int pair3a = 6;
int pair3b = 7;
int pair4a = 8;
int pair4b = 9;

int pair5a = 10;
int pair5b = 11;
int pair6a = 12;
int pair6b = 13;
int pair7a = 14;
int pair7b = 15;
int pair8a = 16;
int pair8b = 17;

long randNumber;

int rd1 = 0;
int rd2 = 0;
int rd3 = 0;
int rd4 = 0;
int rd5 = 0;
int rd6 = 0;
int rd7 = 0;
int rd8 = 0;
int rddelay = 0;

void setup() {
  Serial.begin(9600);
  randomSeed(analogRead(7));
  // put your setup code here, to run once:
pinMode(pair1a, OUTPUT);
pinMode(pair1b, OUTPUT);
pinMode(pair2a, OUTPUT);
pinMode(pair2b, OUTPUT);
pinMode(pair3a, OUTPUT);
pinMode(pair3b, OUTPUT);
pinMode(pair4a, OUTPUT);
pinMode(pair4b, OUTPUT);
pinMode(pair5a, OUTPUT);
pinMode(pair5b, OUTPUT);
pinMode(pair6a, OUTPUT);
pinMode(pair6b, OUTPUT);
pinMode(pair7a, OUTPUT);
pinMode(pair7b, OUTPUT);
pinMode(pair8a, OUTPUT);
pinMode(pair8b, OUTPUT);
}

void loop() {
  // 0 to 3. 1-2 turns one white led, more common, 3 turns it red, 0 shuts it off
rd1 = random(0,3);
rd2 = random(0,3);
rd3 = random(0,3);
rd4 = random(0,3);
rd5 = random(0,3);
rd6 = random(0,3);
rd7 = random(0,3);
rd8 = random(0,3);

rd1 = random(0,3);
if (rd1 == 0 || rd1 == 1)
{
   digitalWrite(pair1b, HIGH);
   digitalWrite(pair1a, LOW);
}
else if (rd1 == 2) {
  digitalWrite(pair1a, HIGH);
  digitalWrite(pair1b, LOW);
}
else {
  digitalWrite(pair1a, LOW);
  digitalWrite(pair1b, LOW);
}


rd1 = random(0,3);
if (rd1 == 0 || rd1 == 1)
{
   digitalWrite(pair1b, HIGH);
   digitalWrite(pair1a, LOW);
}
else if (rd1 == 2) {
  digitalWrite(pair1a, HIGH);
  digitalWrite(pair1b, LOW);
}
else {
  digitalWrite(pair1a, LOW);
  digitalWrite(pair1b, LOW);
}


rd2 = random(0,3);
if (rd2 == 0 || rd2 == 1)
{
   digitalWrite(pair2b, HIGH);
   digitalWrite(pair2a, LOW);
}
else if (rd2 == 2) {
  digitalWrite(pair2a, HIGH);
  digitalWrite(pair2b, LOW);
}
else {
  digitalWrite(pair2a, LOW);
  digitalWrite(pair2b, LOW);
}


rd3 = random(0,3);
if (rd3 == 0 || rd3 == 1)
{
   digitalWrite(pair3b, HIGH);
   digitalWrite(pair3a, LOW);
}
else if (rd3 == 2) {
  digitalWrite(pair3a, HIGH);
  digitalWrite(pair3b, LOW);
}
else {
  digitalWrite(pair3a, LOW);
  digitalWrite(pair3b, LOW);
}


rd4 = random(0,3);
if (rd4 == 0 || rd4 == 1)
{
   digitalWrite(pair4b, HIGH);
   digitalWrite(pair4a, LOW);
}
else if (rd4 == 2) {
  digitalWrite(pair4a, HIGH);
  digitalWrite(pair4b, LOW);
}
else {
  digitalWrite(pair4a, LOW);
  digitalWrite(pair4b, LOW);
}


rd5 = random(0,3);
if (rd5 == 0 || rd5 == 1)
{
   digitalWrite(pair5b, HIGH);
   digitalWrite(pair5a, LOW);
}
else if (rd5 == 2) {
  digitalWrite(pair5a, HIGH);
  digitalWrite(pair5b, LOW);
}
else {
  digitalWrite(pair5a, LOW);
  digitalWrite(pair5b, LOW);
}


rd6 = random(0,3);
if (rd6 == 0 || rd6 == 1)
{
   digitalWrite(pair6b, HIGH);
   digitalWrite(pair6a, LOW);
}
else if (rd6 == 2) {
  digitalWrite(pair6a, HIGH);
  digitalWrite(pair6b, LOW);
}
else {
  digitalWrite(pair6a, LOW);
  digitalWrite(pair6b, LOW);
}


rd7 = random(0,3);
if (rd7 == 0 || rd1 == 1)
{
   digitalWrite(pair7b, HIGH);
   digitalWrite(pair7a, LOW);
}
else if (rd7 == 2) {
  digitalWrite(pair7a, HIGH);
  digitalWrite(pair7b, LOW);
}
else {
  digitalWrite(pair7a, LOW);
  digitalWrite(pair7b, LOW);
}


rd8 = random(0,3);
if (rd8 == 0 || rd8 == 1)
{
   digitalWrite(pair8b, HIGH);
   digitalWrite(pair8a, LOW);
}
else if (rd8 == 2) {
  digitalWrite(pair8a, HIGH);
  digitalWrite(pair8b, LOW);
}
else {
  digitalWrite(pair8a, LOW);
  digitalWrite(pair8b, LOW);
}






Serial.print(" rd1 ");
Serial.print(rd1);
Serial.print(" rd2 ");
Serial.print(rd2);
Serial.print(" rd3 ");
Serial.print(rd3);
Serial.print(" rd4 ");
Serial.println(rd4);
Serial.print(" rd5 ");
Serial.print(rd5);
Serial.print(" rd6 ");
Serial.print(rd6);
Serial.print(" rd7 ");
Serial.print(rd7);
Serial.print(" rd8 ");
Serial.println(rd8);
Serial.println(" ");
Serial.println(" ");
Serial.println(" ");
Serial.println(" ");
Serial.println(" ");
delay(1000);
}
$abcdeabcde151015202530fghijfghij