Adding a random color ramp

A Random color ramp generates a number of randomly generated colors that fall within specified Hue, Saturation, and Value ranges. 

To add a Random color ramp, click on the Add item button () and then choose Random. This opens the Random color ramp window. The Classes parameter determines how many colors to generate. Colors are randomly generated each time any of the parameters are changed. As an example, in the following screenshot, five random colors are generated with different hues (between 100 and 320) but with the same saturation and value:

When all of the parameters have been set, click on OK to save the random color ramp. QGIS will prompt you to name the color ramp. Once it is named, the Random color ramp will appear in the Style Manager's list of color ramps.