title: Creating a random string with A-Z and 0-9 in Java
body: <p>As the title suggest I need to create a random, 17 characters long, ID. Something like "<code>AJB53JHS232ERO0H1</code>". The order of letters and numbers is also random. I thought of creating an array with letters A-Z and a 'check' variable that randoms to <code>1-2</code>. And in a loop;</p>
  
  <pre><code>Randomize 'check' to 1-2.
  If (check == 1) then the character is a letter.
  Pick a random index from the letters array.
  else
  Pick a random number.
  </code></pre>
  
  <p>But I feel like there is an easier way of doing this. Is there?</p>