title: unique Number generation by UUID in Java ?
body: <p>I am looking at a piece of code, and i can see that the following code has been written which generates a string, and that string has been set as the primary key of the table. </p>
  
  <pre><code>return new BigInteger(UUID.randomUUID().toString().replaceAll("-", ""), 16).toString(36);
  </code></pre>
  
  <p>Till now, there are lots of records and they seem to be unique as the primary key constraint is not violated.</p>
  
  <p>I understand that the number will be random but will it be unique? </p>
  
  <p>thanks</p>
  
  <p>Tuco</p>