org.zmpp.vmutil
Class UnpredictableRandomGenerator

java.lang.Object
  extended by org.zmpp.vmutil.UnpredictableRandomGenerator
All Implemented Interfaces:
RandomGenerator

public class UnpredictableRandomGenerator
extends Object
implements RandomGenerator

This class implements the "random" random number generator mentioned in the Z-machine standard document.

Version:
1.0
Author:
Wei-ju Wu

Field Summary
 
Fields inherited from interface org.zmpp.vmutil.RandomGenerator
MAX_VALUE
 
Constructor Summary
UnpredictableRandomGenerator()
          Constructor.
 
Method Summary
 int next()
          Returns the next random value between 1 and MAX_VALUE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnpredictableRandomGenerator

public UnpredictableRandomGenerator()
Constructor.

Method Detail

next

public int next()
Returns the next random value between 1 and MAX_VALUE.

Specified by:
next in interface RandomGenerator
Returns:
a random int value


Copyright © 2005 . All Rights Reserved.