public class RandomUtil extends Object
| 构造器和说明 |
|---|
RandomUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static double |
getRandomNumberDouble(double min,
double max)
【重载】生成随机数(double)
|
static double |
getRandomNumberDouble(double min,
double max,
long seed)
生成随机数(double)
|
static double |
getRandomNumberDouble(String min,
String max)
【重载】生成随机数(double)
|
static int |
getRandomNumberInteger(int min,
int max)
【重载】生成随机数(int)
|
static int |
getRandomNumberInteger(int min,
int max,
long seed)
生成随机数(int)
|
static int |
getRandomNumberInteger(String min,
String max)
【重载】生成随机数(int)
|
public static double getRandomNumberDouble(double min,
double max,
long seed)
min - 最小值max - 最大值seed - 种子public static double getRandomNumberDouble(double min,
double max)
min - 最小值max - 最大值public static double getRandomNumberDouble(String min, String max)
min - 最小值(String)max - 最大值(String)public static int getRandomNumberInteger(int min,
int max,
long seed)
min - 最小值max - 最大值seed - 种子public static int getRandomNumberInteger(int min,
int max)
min - 最小值max - 最大值Copyright © 2021. All rights reserved.