Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <<!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Random Text Generator</title>
- </head>
- <body>
- <script type="text/javascript">
- var alphabet = "abcdefghijklmnopqrstuvwxyz";
- var result = "";
- for (i = 0; i < 8; i++){
- result += alphabet[Math.floor(Math.random() * alphabet.length)];
- console.log(result);
- };
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement