- 随机数字和字符串的生成
java
import cn.hutool.core.util.RandomUtil;
String code = RandomUtil.randomNumbers(6);
String str = RandomUtil.randomString(10);