public class RandomUtils extends Object
| 构造器和说明 |
|---|
RandomUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
generateValidCode() |
static int |
nextInt(int endExclusive)
返回最大为[0-endExclusive)的随机数
使用ThreadLocalRandom在多线程下性能更高
|
public static String generateValidCode()
public static int nextInt(int endExclusive)
Copyright © 2021. All rights reserved.