org.zmpp.vmutil
Interface RandomGenerator
- All Known Implementing Classes:
- PredictableRandomGenerator, UnpredictableRandomGenerator
public interface RandomGenerator
This interface defines the functions of a random number generator within
the Z machine.
- Version:
- 1.0
- Author:
- Wei-ju Wu
Field Summary |
static int |
MAX_VALUE
The maximum generated value. |
Method Summary |
int |
next()
Returns the next random value between 1 and MAX_VALUE. |
MAX_VALUE
static final int MAX_VALUE
- The maximum generated value.
- See Also:
- Constant Field Values
next
int next()
- Returns the next random value between 1 and MAX_VALUE.
- Returns:
- a random int value
Copyright © 2005 . All Rights Reserved.