title: Random Numbers without repeat. Beginner Lvl
body: <p>How can I randomly generate numbers without repetition in this case?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let lottoArray = [];
  
  lottoGame()
  
  function lottoGame () {
      do {
          let addNumber = Math.floor(Math.random()* 30);
          lottoArray.push(addNumber)
          console.log(addNumber)
      }  while(lottoArray.length &lt;= 5 ) {
            
         }
         document.querySelector('.loti').innerHTML = lottoArray 
  }</code></pre>
  </div>
  </div>
  </p>