Losowy kolor w JavaScript
var randomColor = Math.floor(Math.random()*16777215).toString(16);
Wandering Wolf
var randomColor = Math.floor(Math.random()*16777215).toString(16);
var colors = ['#ff0000', '#00ff00', '#0000ff'];
var random_color = colors[Math.floor(Math.random() * colors.length)];
document.getElementById('title').style.color = random_color;