had nothin to do, so i thought i should share sommin with you guys
function randomColor() {
hexcode = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"];
ranColor = "0x";
for (i=0; i<6; i++) {
randomhexcode = hexcode[(random(hexcode.length))];
ranColor += randomhexcode;
}
return (ranColor);
}
it returns an random hex color code something like:
0x000000 <black
feel free to use it !