xdat
Class GFuncs

java.lang.Object
  extended by xdat.GFuncs

public class GFuncs
extends java.lang.Object

Contains generic functions that can be used by other classes.


Constructor Summary
GFuncs()
           
 
Method Summary
static int randomNr(int max, int seed)
          Generates a random Integer between 0 and max, using seed seed
static void wait_ms(int ms)
          Waits for a user-specified number of milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GFuncs

public GFuncs()
Method Detail

randomNr

public static int randomNr(int max,
                           int seed)
Generates a random Integer between 0 and max, using seed seed

Parameters:
max - the maximum value for the random
seed - the seed
Returns:
the random Integer

wait_ms

public static void wait_ms(int ms)
Waits for a user-specified number of milliseconds.

Parameters:
ms - the number of milliseconds to wait