Class RandomNumberGenerator
java.lang.Object
RandomNumberGenerator
- All Implemented Interfaces:
NumberGenerator
public class RandomNumberGenerator extends java.lang.Object implements NumberGenerator
Produces random numbers using Java's Random class
-
Constructor Summary
Constructors Constructor Description RandomNumberGenerator()
RandomNumberGenerator(long seed)
-
Method Summary
Modifier and Type Method Description int
next(int bound)
-
Constructor Details
-
RandomNumberGenerator
public RandomNumberGenerator() -
RandomNumberGenerator
public RandomNumberGenerator(long seed)
-
-
Method Details
-
next
public int next(int bound)- Specified by:
next
in interfaceNumberGenerator
-