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() |
static boolean |
isVerifying() |
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
public static boolean isVerifying()
true
if this class is verifying sharing and lifecycle assertions.Copyright © 2011–2023 Carrot Search s.c.. All rights reserved.