title: Shuffle Array and Display with Button With No Repeats
body: <p>Say I had the following array:
  [x, y, z]</p>
  <p>If I wanted to shuffle that array and display each element one by one (without repeating) on each button click, how would I write that function with Javascript to populate the paragraph? Also, would you recommend writing the code inline or on a separate sheet and then imbedding it? Thank you in advance.</p>
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;link rel=&quot;stylesheet&quot; href=&quot;styles.css&quot;&gt;
  &lt;title&gt; Title &lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;script src=&quot;javascript.js&quot;&gt;&lt;/script&gt;
      &lt;div&gt; 
          &lt;p&gt;&lt;/p&gt;
      &lt;/div&gt;
      &lt;div&gt;
      &lt;button onclick=&quot;displayElement()&quot;&gt;Start&lt;/button&gt;
      &lt;/div&gt;
      
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>