fire_point/src/main/java/com/xkrs/utils/RandomUtil.java

20 lines
312 B
Java
Raw Normal View History

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 {
/**
* 随机生成六位数
*/
public static int returnCode() {
Random rand = new Random();
return rand.nextInt(899999) + 100000;
}
2021-07-12 14:51:34 +08:00
}