var mojis = ["a", "b", "c"] document.getElementById("…").innerText = mojis[Math.floor(Math.random() * mojis.length)];