When it came to lighting this LED candle, so was [fungus amungus]. But there’s a better way, and it involves noise. Perlin noise was created in the early 80s by Ken Perlin while he was working ...
They have a small chip inside them that modulates the LED’s light to flicker like a candle ... used one of the LEDs actually shaped like a flame, and to drill a hole near the ‘flame’.