| Modifier and Type | Method and Description |
|---|---|
boolean |
nextBoolean()
Return a pseudorandom normally distributed boolean
|
double |
nextDouble()
Return a pseudorandom normally distributed double from
0.0 (inclusive) to 1.0 (exclusive) |
float |
nextFloat()
Return a pseudorandom normally distributed float from
0.0f (inclusive) to 1.0f (exclusive) |
int |
nextInt()
Return a pseudorandom normally distributed int
|
int |
nextInt(int bound)
Return a pseudorandom normally distributed long between 0 (inclusive) and the given bound(exlusive)
|
long |
nextLong()
Return a pseudorandom normally distributed long
|
public long nextLong()
Generatorpublic boolean nextBoolean()
GeneratornextBoolean in interface Generatorpublic int nextInt()
Generatorpublic int nextInt(int bound)
Generatorpublic float nextFloat()
Generator0.0f (inclusive) to 1.0f (exclusive)public double nextDouble()
Generator0.0 (inclusive) to 1.0 (exclusive)nextDouble in interface Generator0.0 (inclusive) to 1.0 (exclusive)Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.