2021-07-12 14:51:34 +08:00
|
|
|
package com.xkrs.utils;
|
|
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 随机字符串产生工具
|
2022-07-06 11:55:00 +08:00
|
|
|
*
|
2021-07-12 14:51:34 +08:00
|
|
|
* @author tajochen
|
|
|
|
*/
|
|
|
|
public class RandomUtil {
|
2021-08-03 18:03:44 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 随机生成六位数
|
|
|
|
*/
|
|
|
|
public static int returnCode() {
|
|
|
|
Random rand = new Random();
|
|
|
|
return rand.nextInt(899999) + 100000;
|
|
|
|
}
|
2021-07-12 14:51:34 +08:00
|
|
|
}
|