generate unique alpha-numeric id.

Hi,I need to generate a unique alpha numeric id of lenght 5.It has to be used as a primary key in a table.Is there any algorithm for this?.Any pointers are welcome.Thanks a lot.
[219 byte] By [ranjith_iita] at [2007-10-2 14:55:25]
# 1
Just count up integer numbers and fill them up in a 5-length string.
MartinHilperta at 2007-7-13 13:37:14 > top of Java-index,Security,Cryptography...