Example usage for java.util Random subclass-usage

List of usage examples for java.util Random subclass-usage

Introduction

In this page you can find the example usage for java.util Random subclass-usage.

Usage

From source file Rnd.java

/**
 * @author David Beaumont, Copyright 2005
 *         <p/>
 *         A Java implementation of the MT19937 (Mersenne Twister) pseudo random number generator algorithm based upon
 *         the original C code by Makoto Matsumoto and Takuji Nishimura (see <a
 *         href="http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html">

From source file LinkedTransferQueue.java

/**
 * A random number generator isolated to the current thread.  Like the
 * global {@link java.util.Random} generator used by the {@link
 * java.lang.Math} class, a {@code ThreadLocalRandom} is initialized
 * with an internally generated seed that may not otherwise be
 * modified. When applicable, use of {@code ThreadLocalRandom} rather