cloudhead/less.js — pull request #732 by Synchro (2012-03-23 16:08:43+00:00)
Title: Random colour generator/selector

Adds a very simple function to generate a random opaque colour, or select from a list randomly. With no args it generates a completely random colour; With one or more args it returns one of them, selected randomly. Usage is like this:

```css
color: randomcolor();
color: randomcolor(pink, orange, blue, green, #176dea);
```
output from this might be:

```css
color: #6b265c;
color: #0000ff;
```

There are no test cases for it because, by definition, the output is not predictable! I called it `randomcolor` rather than just `random` as I guess there may be other things you might want to randomise in different ways (e.g. background image, font stack). I foresee this function being useful in generating random colour palettes, where an initial random colour can be used to derive others via LESS's existing colour manipulation functions and my contrast function in #730.