/**
* 时间戳+n位随机数字
*/
@Test
public void sjsTest(){
// 时间戳+6位随机数字
int r = (int) ((Math.random() * 9 + 1) * 100000);
String num = System.currentTimeMillis()+String.valueOf(r);
System.out.println("随机数生成测试="+num);
SimpleDateFormat sdf = new SimpleDateFormat("yyMMddHHmmss");
System.out.println(sdf.format(new Date()));
int randomNum = (int) (Math.random()*Math.pow(10, 6));
System.out.println(randomNum);
}