Rule for color random cycle

Hello all,
I am new to OH2 and i have 2 color items on dmx working (RGB Leds). Now i want a rule, which cycle through all colors, start and stop with an switch item. But i have no plan how to setup this as rule.