Java java.util.concurrent ThreadLocalRandom fields, constructors, methods, implement or subclass

Example usage for Java java.util.concurrent ThreadLocalRandom fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.concurrent ThreadLocalRandom.

The text is from its open source code.

Method

ThreadLocalRandomcurrent()
Returns the current thread's ThreadLocalRandom .
voidnextBytes(byte[] bytes)
Generates random bytes and places them into a user-supplied byte array.
doublenextDouble()
Returns a pseudorandom double value between zero (inclusive) and one (exclusive).
doublenextDouble(double origin, double bound)
Returns a pseudorandom double value between the specified origin (inclusive) and bound (exclusive).
intnextInt(int bound)
Returns a pseudorandom int value between zero (inclusive) and the specified bound (exclusive).
intnextInt(int origin, int bound)
Returns a pseudorandom int value between the specified origin (inclusive) and the specified bound (exclusive).
intnextInt()
Returns a pseudorandom int value.
longnextLong()
Returns a pseudorandom long value.
longnextLong(long origin, long bound)
Returns a pseudorandom long value between the specified origin (inclusive) and the specified bound (exclusive).