Want to generate unique key of 15 chars in java

Consider using UUID. It has much higher length than you specified, but it has a very low (like really low) probability to give you the same values in different runs. It is pretty commonly used.

Leave a Comment