org.zmpp.vmutil
Class UnpredictableRandomGenerator
java.lang.Object
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
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 |
UnpredictableRandomGenerator
public UnpredictableRandomGenerator()
- Constructor.
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.