title: can someone explain this function
body: <p>Could someone explain to me how this function works?</p>
  
  <pre><code>var randomize = function(length){
    var text = "";
    var possible = "123abc";
  
    for (var i = 0 ; i &lt; length; i++)
      text += possible.charAt(Math.floor(Math.random()*possible.length))
  
    return text;
  }
  
  console.log(randomize(6));
  </code></pre>
  
  <p>I'm trying to understand it but some lines don't make sense.</p>