Example usage for Java java.util.concurrent ThreadLocalRandom fields, constructors, methods, implement or subclass
The text is from its open source code.
ThreadLocalRandom | current() Returns the current thread's ThreadLocalRandom . |
void | nextBytes(byte[] bytes) Generates random bytes and places them into a user-supplied byte array. |
double | nextDouble() Returns a pseudorandom double value between zero (inclusive) and one (exclusive). |
double | nextDouble(double origin, double bound) Returns a pseudorandom double value between the specified origin (inclusive) and bound (exclusive). |
int | nextInt(int bound) Returns a pseudorandom int value between zero (inclusive) and the specified bound (exclusive). |
int | nextInt(int origin, int bound) Returns a pseudorandom int value between the specified origin (inclusive) and the specified bound (exclusive). |
int | nextInt() Returns a pseudorandom int value. |
long | nextLong() Returns a pseudorandom long value. |
long | nextLong(long origin, long bound) Returns a pseudorandom long value between the specified origin (inclusive) and the specified bound (exclusive). |