here is the code…
`
<button>Change</button>
<script>
let btn = document.querySelector('button');
function random(number){
return Math.floor(Math.random()* number);
}
function randColor(){
let ranCol = "rgb(' + random(255) + ',' + random(255) + ',' + random(255) + ' )";
document.body.style.backgroundColor = ranCol;
}
btn.onclick = randColor;
</script>
`