Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <p id="msg"></p> <script> // Returns a random integer between min (included) and max (excluded) function getRandomIntExcludeMax(min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min)) + min; } document.getElementById("msg").innerHTML = getRandomIntExcludeMax(1, 100); </script>