\documentclass{oblivoir} \usepackage[x11names]{xcolor} \usepackage{arrayjob} %%% hoze's sample \newarray\PagetabColors \readarray{PagetabColors}{red&orange&yellow&green&cyan&blue&violet&lightgray&darkgray&black} \usepackage[first=1,last=10]{lcg} \usepackage{multido} \begin{document} \noindent\multido{}{10}{% \rand\arabic{rand} \checkPagetabColors(\therand) \textcolor{\cachedata}{What color?} } \end{document}