类 RandomUtil
java.lang.Object
cn.valot.common.data.RandomUtil
随机工具类
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringrandomAlphanumeric(int length) 生成随机字母数字static IntegerrandomInt(int size) 随机 0 - size 的整数static StringrandomNumeric(int length) 生成随机数字
-
字段详细资料
-
ALPHANUMERIC
-
NUMERIC
-
-
构造器详细资料
-
RandomUtil
public RandomUtil()
-
-
方法详细资料
-
randomAlphanumeric
生成随机字母数字- 参数:
length- 长度- 返回:
- 随机字母字符串
-
randomNumeric
生成随机数字- 参数:
length- 长度- 返回:
- 随机字母字符串
-
randomInt
随机 0 - size 的整数
-