JavaScript
- 1 ответ
- 0 вопросов
1
Вклад в тег
function t6(a, b) {
return Math.floor(Math.random() * (b - a + 1)) + a
}
function t7() {
return `rgb(${t6(0, 255)}, ${t6(0, 255)}, ${t6(0, 255)})`
}
document.querySelector('.button').onclick = function () {
document.querySelector('.out').style.background = t7();
}