Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script>
- function getRndInteger(min,max) {
- var min = prompt("Your number:", "min");
- var max = prompt("Your number:", "max");
- return Math.floor(Math.random() * (max - min + 1) + min) ;
- }
- </script>
- </head>
- <body>
- <button onclick="document.getElementById('demo').innerHTML = getRndInteger(min,max)">testo</button>
- <p id="demo"></p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement