Random random = new Random(System. currentTimeMillis());
int l = random.nextInt();
int token = Math.abs(l % 999999999);
请问如果在第二行random的时候只生成整数,否则生成的token可能重复
int l = random.nextInt();
int token = Math.abs(l % 999999999);
请问如果在第二行random的时候只生成整数,否则生成的token可能重复
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货