com.cafesoft.core.util
Class RandomNumberGenerator

java.lang.Object
  |
  +--com.cafesoft.core.util.RandomNumberGenerator

public class RandomNumberGenerator
extends Object

This class creates random numbers

This Singleton class initialize single random number generator with a random seed using the third party library infiniteMonkey.

Since:
1/15/03

Method Summary
static RandomNumberGenerator getInstance()
          Get the instance of the RandomNumberGenerator
static void main(String[] args)
           
 int nextInt()
          Get the next random integer value from the RandomNumberGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final RandomNumberGenerator getInstance()
Get the instance of the RandomNumberGenerator

Returns:
single instance of the RandomNumberGenerator

nextInt

public int nextInt()
Get the next random integer value from the RandomNumberGenerator

Returns:
the next random integer value

main

public static void main(String[] args)


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.