Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <script type="text/javascript">
- function butts2() {
- var chance = Math.random()*200
- Math.round(chance);
- alert(chance + "%");
- }
- function butts() {
- var chance = Math.random()*100
- Math.round(chance);
- alert(chance + "%");
- }
- function butts3() {
- var chance = Math.random()*50
- Math.round(chance);
- alert(chance + "%");
- }
- </script>
- <button id="asdf" onclick="butts2()">Randomizer/</button>
- <button id="asdf" onclick="butts()">Randomizer</button>
- <button id="asdf" onclick="butts3()">Randomizer /</button>
- <style>
- #asdf {
- margin: 50px;
- padding: 50px;
- font-family: Arial;
- font-size: 100px;
- text-align: center;
- border-width: 20px;
- }
- body {
- background-color: #73F8FA;
- }
- </style>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement