title: jQuery: randomize words in a string?
body: <p>I'm trying to randomize the words in a string using jquery but my code doesn't return anything.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>function makerand() {
  
  
    var text = "";
    var possible = "david, sarah, michelle, pedro";
  
     text += possible.charAt(Math.floor(Math.random() * possible.length));
  
    return text;
  
    alert(text);
  }
  </code></pre>
  
  <p><strong>html:</strong></p>
  
  <pre><code>&lt;button onclick="makerand()"&gt;click me&lt;/button&gt;
  </code></pre>
  
  <p>what I need to do is to randomize that string like so for example:</p>
  
  <pre><code>sarah, pedro, michelle, david
  </code></pre>
  
  <p>Could someone please advise on this?</p>