public class JavaRandomGenerator extends Object implements PseudoRandomGenerator
| Constructor and Description |
|---|
JavaRandomGenerator()
Constructor
|
JavaRandomGenerator(long seed)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
long |
getSeed() |
double |
nextDouble() |
double |
nextDouble(double lowerBound,
double upperBound) |
int |
nextInt(int lowerBound,
int upperBound) |
void |
setSeed(long seed) |
public JavaRandomGenerator()
public JavaRandomGenerator(long seed)
public long getSeed()
getSeed in interface PseudoRandomGeneratorpublic int nextInt(int lowerBound,
int upperBound)
nextInt in interface PseudoRandomGeneratorpublic double nextDouble(double lowerBound,
double upperBound)
nextDouble in interface PseudoRandomGeneratorpublic double nextDouble()
nextDouble in interface PseudoRandomGeneratorpublic void setSeed(long seed)
setSeed in interface PseudoRandomGeneratorpublic String getName()
getName in interface PseudoRandomGeneratorCopyright © 2018. All rights reserved.