title: Jquery Random Math without repeating previous var
body: <p>I have the following code </p>
  
  <pre><code>var link = [];
  link[0] = "css/pink/pink.css";
  link[1] = "css/blue/blue.css";
  link[3] = "";   
  function changeStyle() {
  var ran = Math.floor(Math.random() * link.length );
      var style = link[ran];
      jQuery('link[id=style-switch]').attr({href : style});
  }
  </code></pre>
  
  <p>It works, although I am unsure as to how to make it not repeat a previous choice until they have all been looped through. Any ideas?</p>