title: How to create random string in Javascript?
body: <p>I would like to create <code>random</code> strings. But I am not get a right way. any one can help me please?</p>
  
  <p>my try :</p>
  
  <pre><code>var anysize = 3;//the size of string 
  var charset = "abcdefghijklmnopqrstuvwxyz"; //from where to create
  console.log( Math.random( charset ) * anysize ); //getting bad result
  </code></pre>
  
  <p>Is it possible to correct me? or any other elegant way to fix this?</p>
  
  <p>Thanks in advance.</p>