接口 Random
-
public interface Randomrandom interface
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleannextBoolean()voidnextBytes(byte[] bytes)doublenextDouble()floatnextFloat()intnextInt()intnextInt(int bound)longnextLong()
-
public interface Random
| 修饰符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
nextBoolean() |
|
void |
nextBytes(byte[] bytes) |
|
double |
nextDouble() |
|
float |
nextFloat() |
|
int |
nextInt() |
|
int |
nextInt(int bound) |
|
long |
nextLong() |