- All Implemented Interfaces:
Serializable
public class RandomSimple
extends Random
- See Also:
-
-
Field Summary
Fields
private static final long
private long
-
Constructor Summary
Constructors
-
Method Summary
protected final int
final long
void
Methods inherited from class java.util.Random
doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID
- See Also:
-
-
-
Constructor Details
-
RandomSimple
public RandomSimple()
-
RandomSimple
public RandomSimple(long seed)
-
Method Details
-
nextLong
public final long nextLong()
- Overrides:
nextLong
in class Random
-
next
protected final int next(int bits)
- Overrides:
next
in class Random
-
setSeed
public void setSeed(long seed)
- Overrides:
setSeed
in class Random