<p id="rand"></p> <script> document.getElementById('rand').textContent = Math.floor(Math.random() * 100); </script>