fmtmalvin

randomgen

Sep 20th, 2021
827
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <<!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="utf-8">
  5.     <title>Random Text Generator</title>
  6. </head>
  7. <body>
  8.     <script type="text/javascript">
  9.         var alphabet = "abcdefghijklmnopqrstuvwxyz";
  10.         var result = "";
  11.         for (i = 0; i < 8; i++){
  12.            result += alphabet[Math.floor(Math.random() * alphabet.length)];
  13.            console.log(result);
  14.        };
  15.    </script>
  16. </body>
  17. </html>
RAW Paste Data