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 Random
public double nextDouble()
nextDouble
in class Random
public double nextGaussian()
nextGaussian
in class Random
public void destroy()
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2011–2015 Carrot Search s.c.. All rights reserved.