This is inspired by the Adafruit Sparkle Skirt and Adafruit Neopixel Tiara sketches: random flash code with 5 colors instead of 3 and I've adjusted the colors.
I have used this on a 6 led strand of (flat) ws2801 lights, which I've attached to a belt and driven with a 5v adafruit trinket and a coin cell battery holder