Why can't we just decide to have it non-static? What is it letting us do?
static int nLen = 0;
    if (nLen)
    {
        nLen--;
        if (rand() % 4 == 0)
        {
            float light = (float)rand()/(float)RAND_MAX;
            if (rand() % 2 == 0)
            {
                Program.SendUniform("lightEmissive.color", 0.0, 0.0, 0.0);
                Program.SendUniform("lightPoint.diffuse", 0.0, 0.0, 0.0);
            }
            else
            {
                Program.SendUniform("lightEmissive.color", 1.0 * light, 1.0 * light, 0.8 * light);
                Program.SendUniform("lightPoint.diffuse", 0.15 * light, 0.15 * light, 0.15 * light);
            }
        }
    }
    else
    {
        Program.SendUniform("lightEmissive.color", 1.0, 1.0, 0.8);
        Program.SendUniform("lightPoint.diffuse", 0.15, 0.15, 0.15);
        if (rand() % 300 == 0)
            nLen = rand() % 180;
    }
 
     
     
     
    