title: Javascript - generating a random number of specified length from set of specified values
body: <p>I wanted to generate a random number 32 characters in length from a specified set of characters.</p>
  
  <p>For example:</p>
  
  <pre><code>var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZ";
  var string_length = 32;
  </code></pre>
  
  <p>Which would then return a random number of length 32 using the specified characters. </p>