clojure.core.async
Class ThreadLocalRandom

java.lang.Object
  extended by java.util.Random
      extended by clojure.core.async.ThreadLocalRandom
All Implemented Interfaces:
Serializable

public class ThreadLocalRandom
extends Random

See Also:
Serialized Form

Method Summary
static ThreadLocalRandom current()
          Returns the current ThreadLocalRandom for this thread.
 
Methods inherited from class java.util.Random
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

current

public static ThreadLocalRandom current()
Returns the current ThreadLocalRandom for this thread. Clients must call current, rather than constructing instances themselves. The ThreadLocalRandom instance will be returned from a ThreadLocal variable.

Returns:
A ThreadLocalRandom for the current thread
See Also:
ThreadLocal, Random


Copyright © 2015. All Rights Reserved.