Class TempRandom

java.lang.Object
  |
  +--java.util.Random
        |
        +--TempRandom

public class TempRandom
extends java.util.Random

A temporary version of java.util.Random that provides the RandInt (int n) method; should not be necessary because a similar function has been implemented since JDK 1.2, according to Sun's documentation for Random.

See Also:
Serialized Form

Constructor Summary
TempRandom()
           
 
Method Summary
 int nextInt(int n)
          Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
 
Methods inherited from class java.util.Random
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextLong, setSeed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempRandom

public TempRandom()
Method Detail

nextInt

public int nextInt(int n)
Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

Precondition: n > 0

Overrides:
nextInt in class java.util.Random