The java.io.File class has an API to automatically create random file names:
static File createTempFile(
String prefix, String suffix)
Creates an empty file in the default temporary-file directory, using the given prefix and suffix to generate its name
SCJP,SCJD SCEA, SCWCD, SCBCD<br />OCP DBA 8i / 9i<br />CISSP, PMP, PHR<br />CCNA, CCDA <br /><a href="http://www.certgear.com" target="_blank" rel="nofollow">http://www.certgear.com</a>