Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Scenarioslump</title>
- </head>
- <body>
- <h1></h1>
- <script>
- function getRandom(min, max) {
- return Math.floor(Math.random() * (max - min) + min);
- }
- var scenarion = [];
- scenarion[0] = ["Destruction", "Two Fronts", "Close Quarters"];
- scenarion[1] = ["Fire Support", "Incoming", "Incursion"];
- scenarion[2] = ["Outflank", "Recon", "reroll"];
- document.getElementsByTagName("h1")[0].innerHTML = scenarion[getRandom(0, 3)][getRandom(0, 3)];
- /*
- 1 Destruction Two Fronts Close Quarters
- 2 Fire Support Incoming Incursion
- 3 Outflank Recon [reroll]
- */
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment