public final class AssertingRandom extends Random
Random.setSeed(long) and locked
to be used by a single thread.| Constructor and Description |
|---|
AssertingRandom(Thread owner,
Random delegate)
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone() |
void |
destroy()
This object will no longer be usable after this method is called.
|
boolean |
equals(Object obj) |
int |
hashCode() |
protected int |
next(int bits) |
boolean |
nextBoolean() |
void |
nextBytes(byte[] bytes) |
double |
nextDouble() |
float |
nextFloat() |
double |
nextGaussian() |
int |
nextInt() |
int |
nextInt(int n) |
long |
nextLong() |
void |
setSeed(long seed) |
String |
toString() |
public boolean nextBoolean()
nextBoolean in class Randompublic double nextDouble()
nextDouble in class Randompublic double nextGaussian()
nextGaussian in class Randompublic void destroy()
protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2011-2013 Carrot Search s.c.. All Rights Reserved.