20 lines
312 B
Java
20 lines
312 B
Java
package com.xkrs.utils;
|
|
|
|
import java.util.Random;
|
|
|
|
/**
|
|
* 随机字符串产生工具
|
|
*
|
|
* @author tajochen
|
|
*/
|
|
public class RandomUtil {
|
|
|
|
/**
|
|
* 随机生成六位数
|
|
*/
|
|
public static int returnCode() {
|
|
Random rand = new Random();
|
|
return rand.nextInt(899999) + 100000;
|
|
}
|
|
}
|