title: Is this function returning an unique value?
body: <p>I'm newbie in Java. I see some people use this function to return unique id in Spring. Does This function return unique value?</p>
  
  <pre><code>public class Utils {
      private final Random RANDOM = new SecureRandom();
      private final String ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  
      private String generateRandomString(int length) {
          StringBuilder returnValue = new StringBuilder(length);
  
          for (int i = 0; i &lt; length; i++) {
              returnValue.append(ALPHABET.charAt(RANDOM.nextInt(ALPHABET.length())));
          }
  
          return new String(returnValue);
      }
  }
  </code></pre>