import java.util.Random;
public class IDUtil {
public static String getImageName() {
//取当前时间长整型毫秒值
long millis = System.currentTimeMillis();
//加上三位随机数
Random random = new Random();
int end3 = random.nextInt(999);
//如果不足三位前面补0
String str = millis + String.format("%03d", end3);
return str;
}
}