Color cube wheel

Hi,
I’am working on a color cube wheel game, for example I have 3 cubes having 6 colors on each side, how can I move them one by one or in random segment (from left to right) by pressing one button?And to stop them when reaching a certain time?The result is that the 3 cubes will show different colors at the same time at the end of the game.

Thank you in advance…
niks_crasher