| 限定符和类型 | 字段和说明 |
|---|---|
static char[] |
ALPHA |
protected static int |
charMaxIndex |
protected static int |
charMinIndex |
protected static int |
lowerMaxIndex |
protected static int |
lowerMinIndex |
protected static int |
numMaxIndex |
protected static SecureRandom |
RANDOM |
protected static int |
upperMaxIndex |
protected static int |
upperMinIndex |
| 构造器和说明 |
|---|
Randoms() |
protected static final SecureRandom RANDOM
public static final char[] ALPHA
protected static final int numMaxIndex
protected static final int charMinIndex
protected static final int charMaxIndex
protected static final int upperMinIndex
protected static final int upperMaxIndex
protected static final int lowerMinIndex
protected static final int lowerMaxIndex
public static int num(int min,
int max)
min - 最小值max - 最大值public static int num(int num)
num - 最大值public static char alpha()
public static char alpha(int num)
num - 到第几位结束public static char alpha(int min,
int max)
min - 从第几位开始max - 到第几位结束Copyright © 2019. All rights reserved.