title: While loop to populate array with no duplicates not working
body: <p>This while loop is causing my Angular app to stall. If I replace randomdrug in the last line with a simple string like 'foo', the list is populated. When I add randomdrug, the app stalls. What am I doing wrong?</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>  getDrugsForSale() {
      while (this.drugsforSale.length &lt; this.locations[this.currentLocation].numDrugs) {
        const i = Math.floor(Math.random() * ((this.locations[this.currentLocation].numDrugs - 1) - 0) + 0);
        const randomdrug = this.drugNames[i];
        if (!(this.drugsforSale.includes(randomdrug))) {
          this.drugsforSale.push(randomdrug);
        }
      }
    }</code></pre>
  </div>
  </div>
  </p>