showing results for - "random rgba color javascript except black"
Wolf
09 Sep 2016
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();