com.sybase.afx.util
Class FastRandom

java.lang.Object
  extended by com.sybase.afx.util.FastRandom

public class FastRandom
extends java.lang.Object


Constructor Summary
FastRandom()
           
FastRandom(int seed)
           
 
Method Summary
 int nextInt()
          Return a non-negative pseudo-random integer value in the range 1 to 2147483647.
 int nextInt(int min, int max)
          Return a pseudo-random integer value in the range min ..
 void setSeed(int seed)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastRandom

public FastRandom()

FastRandom

public FastRandom(int seed)
Method Detail

setSeed

public void setSeed(int seed)

nextInt

public final int nextInt()
Return a non-negative pseudo-random integer value in the range 1 to 2147483647.


nextInt

public final int nextInt(int min,
                         int max)
Return a pseudo-random integer value in the range min .. max.