 void loop() {
   // Generate a random number of leds
   int noLeds = (int) random(1,5);
-  // Serial port slows things down
-  // remove this when tuning for delays is done
+  int onLeds[noLeds];
+  Serial.println("No of leds");
   Serial.println(noLeds);
-  Serial.println("-------------");
-  int onLeds[noLeds];
   // get the first random number
-  onLeds[0] = (int) random(1,5);
+  onLeds[0] = (int) random(1,31);
+  Serial.println("--------");
+  Serial.println(onLeds[0]);
   int dupes, randNo;
   for (int i=1; i<noLeds; i++)
   {

    // that is unique
    do
    {
      randNo = (int) random(1,5);
      dupes = 0;
      for (int j=0; j<i; j++)
      {

typedef struct{
  int pinHigh;
  int pinLow;
  int pinHiImp1; // we do this because we are charlieplexing
  int pinHiImp2;
  int pinHiImp3;
  int pinHiImp4;
} LED;

/* 
 * Array of leds 
 * This is assuming we are using these lines:
 * 3, 5, 6, 9, 10, 11
 */
LED leds[30] = {{3, 5, 6, 9, 10, 11},
               {5, 3, 6, 9, 10, 11},
               {3, 6, 5, 9, 10, 11},
               {6, 3, 5, 9, 10, 11},
               {3, 9, 5, 6, 10, 11},
               {9, 3, 5, 6, 10, 11},
               {3, 10, 5, 6, 9, 11},
               {10, 3, 5, 6, 9, 11},
               {3, 11, 5, 6, 9, 10},
               {11, 3, 5, 6, 9, 10},
               {5, 6, 3, 9, 10, 11},
               {6, 5, 3, 9, 10, 11},
               {5, 9, 3, 6, 10, 11},
               {9, 5, 3, 6, 10, 11},
               {5, 10, 3, 6, 9, 11},
               {10, 5, 3, 6, 9, 11},
               {5, 11, 3, 6, 9, 10},
               {11, 5, 3, 6, 9, 10},
               {6, 9, 3, 5, 10, 11},
               {9, 6, 3, 5, 10, 11},
               {6, 10, 3, 5, 9, 11},
               {10, 6, 3, 5, 9, 11},
               {6, 11, 3, 5, 9, 11},
               {11, 6, 3, 5, 9, 11},
               {9, 10, 3, 5, 6, 11},
               {10, 9, 3, 5, 6, 11},
               {9, 11, 3, 5, 6, 10},
               {11, 9, 3, 5, 6, 10},
               {10, 11, 3, 5, 6, 9},
               {11, 10, 3, 5, 6, 9}};

/*
 * Reset all LEDs 
