     }
     else
     {
-      if (random(0, fireflyChance) == 0)
+      if (random(0, fireflyChance(potValue)) == 0)
       {
         firefly.active = true;
         firefly.lifetime = fireflyLifetime();


void loop()
{
  for (int i = 0; i < numNeopixels; i++)
  {
    auto& firefly = fireflies[i];


Firefly fireflies[numNeopixels];

int fireflyChance(float scaler) { return 1000 * scaler; }
int fireflyLifetime() { return random (100, 200); }

Color3F fireflyColor()
