Random Stuff
<html>
<head>
  <title>Random Letters</title>
</head>
<body>
  <div id="letters">
    <h3>Random Letters</h3>
  </div>
  <script>
    function getRandomLetter() {
      var alphabet = "abcdefghijklmnopqrstuvwxyz";
      return alphabet.charAt(Math.floor(Math.random() * alphabet.length));
    }

    var lettersDiv = document.getElementById('letters');

    for (var j = 0; j < 10; j++) {
      var randomLetters = [];
      for (var i = 0; i < 5; i++) {
        randomLetters.push(getRandomLetter());
      }
      lettersDiv.innerHTML += '<p>' + randomLetters.join('') + '</p>';
    }
  </script>
</body>
</html>
  • Arquivos
  • Index
  • Style
  • Script
  • README
  • CDN Adicionar
HTML
PLEASE WAIT...