<script>var colors=['red','blue','green','orange','yellow']; function bcolor(){ var c=Math.floor(Math.random()*5); document.bgColor=colors[c]; }bcolor();</script>