-
Notifications
You must be signed in to change notification settings - Fork 30
随机数工具 RandomUtil
feilong edited this page May 22, 2020
·
1 revision
随机数
随机抽取字符串char,拼接成指定长度length的字符串.
示例:
RandomUtil.createRandomFromString(Alphabet.DECIMAL_AND_LETTERS, 5)
从 Alphabet.DECIMAL_AND_LETTERS
随机抽取字符,组成长度是5的字符串
生成的结果是可能是IFSMB
生成一个指定长度length的 随机正整数.
示例:
RandomUtil.createRandomWithLength(2)
生成的结果是可能是 89
core