net.sourceforge.basher.internal.impl
Class RandomRandomizer
java.lang.Object
net.sourceforge.basher.internal.impl.RandomRandomizer
- All Implemented Interfaces:
- Randomizer
public class RandomRandomizer
- extends Object
- implements Randomizer
- Version:
- 1.0
- Author:
- Johan Lindquist
Method Summary |
int |
getRandomInt(int range)
Provides a random integer in the range 0 (inclusive) to range (exclusive). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomRandomizer
public RandomRandomizer()
getRandomInt
public int getRandomInt(int range)
- Description copied from interface:
Randomizer
- Provides a random integer in the range 0 (inclusive) to range (exclusive).
- Specified by:
getRandomInt
in interface Randomizer
- Parameters:
range
- The top range of the integer to return (exclusive).
- Returns:
- An integer within the specified range.
Copyright © 2006-2010 Basher Team. All Rights Reserved.