daily pastebin goal
78%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <script>
  4. function getRndInteger(min,max) {
  5. var min = prompt("Your number:", "min");
  6. var max = prompt("Your number:", "max");
  7. return Math.floor(Math.random() * (max - min + 1) + min) ;
  8. }
  9. </script>
  10. </head>
  11. <body>
  12.  
  13. <button onclick="document.getElementById('demo').innerHTML = getRndInteger(min,max)">testo</button>
  14.  
  15. <p id="demo"></p>
  16.  
  17.  
  18.  
  19. </body>
  20. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top