JensNTI

scenarioslump

Mar 23rd, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.65 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4.     <meta charset="utf-8">
  5.     <title>Scenarioslump</title>
  6. </head>
  7. <body>
  8. <h1></h1>
  9. <script>
  10.  
  11. function getRandom(min, max) {
  12.     return Math.floor(Math.random() * (max - min) + min);
  13. }
  14.  
  15. var scenarion = [];
  16.  
  17. scenarion[0] = ["Destruction", "Two Fronts", "Close Quarters"];
  18. scenarion[1] = ["Fire Support", "Incoming", "Incursion"];
  19. scenarion[2] = ["Outflank", "Recon", "reroll"];
  20.  
  21. document.getElementsByTagName("h1")[0].innerHTML = scenarion[getRandom(0, 3)][getRandom(0, 3)];
  22.  
  23. /*
  24. 1 Destruction Two Fronts Close Quarters
  25. 2 Fire Support Incoming Incursion
  26. 3 Outflank Recon [reroll]
  27. */
  28. </script>
  29.  
  30. </body>
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment