var color = ["red","green","blue","maroon","white","pink","#00ff09","#3030f0","#f3f3f3","#f8f8f8"];function func() {var index = Math.floor(Math.random() * color.length) + 1;document.body.style.backgroundColor=color[index];}setInterval(func, 500);