Need some help on a sketch for Circuit playground

I see, didn't realise that part.

This line looks like a place to start changing values:

 uint8_t lvl = random(64, 192); // End brightness at 128±64