Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <title>JavaScript coin</title>
- </head>
- <body>
- <!-- File: listing-7-10.htm -->
- <script type="text/javascript">
- <!--
- document.write("The coin has landed on ");
- var fltRandomNumber = Math.random();
- if(fltRandomNumber < 0.5)
- {
- document.write(" head!");
- }
- else
- {
- document.write(" Tails!");
- }
- // -->
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement