public class RandomIntTools extends Object
Constructor and Description |
---|
RandomIntTools() |
Modifier and Type | Method and Description |
---|---|
static int |
getIntByMax(int max)
获取0~max范围内的随机整数
方法说明: getIntByMax
输入参数说明: @param max
输入参数说明: @return
输出参数说明: int
|
static int |
getIntByRange(int min,
int max)
获取指定范围的随机整数
方法说明: getIntByRange
输入参数说明: @param min
输入参数说明: @param max
输入参数说明: @return
输出参数说明: int
|
public static int getIntByRange(int min, int max)
public static int getIntByMax(int max)
Copyright © 2018. All rights reserved.