moved GradientPalette to common library

make use of randomR in generatePalette