title: The purpose of toString(int) in Java
body: <p>I am trying to solve the purpose of toString(32). As an example of it's use:</p>
  
  <pre><code>private SecureRandom sRandomString = new SecureRandom();
  
  public String newRandomPass() {
      return new BigInteger(70, sRandomString).toString(32);
  }
  </code></pre>
  
  <p>I've searched the JavaDocs and still haven't found an answer. The closest I've come is from this answer here:</p>
  
  <p><a href="https://stackoverflow.com/a/1356337/1065389">https://stackoverflow.com/a/1356337/1065389</a></p>
  
  <p>However, I still don't understand what returns 'g' is supposed to mean. So what does toString(32) actually do?</p>