let text = ["hello", "world", "where", "list", "tes", "new"];
const btn = document.querySelector(".button");
btn.addEventListener("click", random);
const randomText = Math.floor(Math.random() * text.length);
function random() {
const pText = document.querySelector(".p-text");
const textRandom = (pText.innerHTML = `${text[randomText]}`);
}
hy guys, can you help me.? how do I still get random results when I click the button?