java生成随机数方法:
String random = String.valueOf(new Random().nextInt(9000)); String timestamp = String.valueOf(System.currentTimeMillis() / 1000); random = random + timestamp;