diff --git a/CI-ColorWebs/wwwroot/js/site.js b/CI-ColorWebs/wwwroot/js/site.js
index 9dff66ea19f8f7b89351bf7547977bc87f861231..8fc1adffe2966985ab8268e842cfac6c2a136c9c 100644
--- a/CI-ColorWebs/wwwroot/js/site.js
+++ b/CI-ColorWebs/wwwroot/js/site.js
@@ -7,7 +7,7 @@ const context = canvas.getContext("2d");
const cre = () => {
var ranColor = [];
for (var i = 0; i <= 5; i++){
- const randomColor = Math.floor(Math.random()*16777215).toString(16);
+ const randomColor = "000000".replace(/0/g,function(){return (~~(Math.random()*16)).toString(16);});
ranColor.push(randomColor)
}
color.innerHTML = "#" + ranColor[0];