jp.ac.hiroshima_u.sci.math.saito.tinymt
Class ThreadLocalRandom

java.lang.Object
  extended by jp.ac.hiroshima_u.sci.math.saito.tinymt.ThreadLocalRandom

public final class ThreadLocalRandom
extends java.lang.Object

This class is an alternative implementation of java.util.concurrent.ThreadLocalRandom in Java 7.

Author:
M. Saito

Method Summary
static java.util.Random current()
          get subclass of java.util.Random for current thread.
static TinyMT32 currentTinyMT()
          get random generator for current thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

currentTinyMT

public static TinyMT32 currentTinyMT()
get random generator for current thread.

Returns:
instance of TinyMT

current

public static java.util.Random current()
get subclass of java.util.Random for current thread.

Returns:
instance of subclass of java.util.Random