I'm not looking for someone to code it for me, just some ideas on how to approach it... I'm fairly amateur.
Anyway, I want to have X number of LEDs and a potentiometer. As you fade the pot up, random LEDs turn on. So at half turned, a random 50% of the LEDs are on, at full turn, all the LEDs.
Simple enough so far. But here's the thing, I don't want it to rerandomize all the lights as it fades up. I just want it to add to the ones already on. So no static TV look. So what I need advice on is how to efficiently figure out which LEDs are not on yet, then randomly choose an off one to turn on.
Then there's the fade down, I need to find an efficient way to choose random on LEDs to turn back off as it fades back down.
So basically I need help on how to create an array, then how to interact with objects in that array based on their values, in groups.
The fact that they will be LEDs is not important, I'm just interested on how to do these things with an array.