In this question I found a lot of interesting functions to generate random colors. But I need a random color generator that accept Hue, Saturation and Darkness range and also number of colors that we need. Actually I can write a random color generator but I don't have good understanding of relationship between color numbers and darkness, hue and saturation of a color. I want the function export colors in an array. I also made a jsfiddle file here for testing.