At the start of each paragraph, generate three random numbers between 0 and 255, use them as RGB parameters to generate a color, apply the color at the start of paragraph.
% Get random color paramaters
% Generate random color
% Use color
This solution uses the rangen package, specifically the
to generate three random numbers between 0 and 255. These three numbers
are then used as RGB values in the
\definecolor command from xcolor package.
All the above are bundled in a macro which is applied at the start of a paragraph using the
I went one step further and hooked the
\AtBeginDocument. So, the random color effect starts
at the start of a document. Should you want the random effect start at some
mid point, please put the
command where you want the random effect to start.
Your output is likely to look different. The colors are supposed to be random.
Should you want the RGB values in a certain range, tweak the range values