com.plumtree.openfoundation.util
Class XPRandom

java.lang.Object
  extended by com.plumtree.openfoundation.util.XPRandom

public class XPRandom
extends java.lang.Object

Wraps and stores a random variable object.


Constructor Summary
XPRandom()
          Creates a new random object.
XPRandom(int seed)
          Creates a new random object with a seed.
 
Method Summary
 java.lang.String NextHex()
          Returns the next hex string.
 int NextInt()
          Returns the next random integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPRandom

public XPRandom()
Creates a new random object. Uses date as seed.


XPRandom

public XPRandom(int seed)
Creates a new random object with a seed.

Parameters:
seed - the seed value you wish to use.
Method Detail

NextInt

public int NextInt()
Returns the next random integer.

Returns:
random integer

NextHex

public java.lang.String NextHex()
Returns the next hex string.

Returns:
next hex string.


Copyright © 2002, 2003, 2004 Plumtree Software Inc. All Rights Reserved.