1function random_bg_color() {
2 var x = Math.floor(Math.random() * 256);
3 var y = 100+ Math.floor(Math.random() * 256);
4 var z = 50+ Math.floor(Math.random() * 256);
5 var bgColor = "rgb(" + x + "," + y + "," + z + ")";
6 console.log(bgColor);
7
8 document.body.style.background = bgColor;
9 }
10
11random_bg_color();