title: Display an item from a list of items
body: <p>I have a sample:</p>
  
  <p><a href="https://codepen.io/cristian-marius/pen/LYPabxe" rel="nofollow noreferrer">link</a></p>
  
  <p>I want the item with the <code>"item-extra"</code> class to be randomly displayed in the item list.</p>
  
  <p>Now, the code rearranges all the elements.</p>
  
  <p>I want the rest to remain fixed and only the one with the <code>"item-extra</code>" class will be moved to each page reload.</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>var ul = document.querySelector('ul');
  for (var i = ul.children.length; i &gt;= 0; i--) {
    ul.appendChild(ul.children[Math.random() * i | 0]);
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.item-extra {
    color: red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul&gt;
    &lt;li&gt;item 1&lt;/li&gt;
    &lt;li&gt;item 2&lt;/li&gt;
    &lt;li&gt;item 3&lt;/li&gt;
    &lt;li&gt;item 4&lt;/li&gt;
    &lt;li&gt;item 5&lt;/li&gt;
    &lt;li class="item-extra"&gt;item extra&lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>