net.sourceforge.basher.internal.impl
Class RandomRandomizer

java.lang.Object
  extended by net.sourceforge.basher.internal.impl.RandomRandomizer
All Implemented Interfaces:
Randomizer

public class RandomRandomizer
extends Object
implements Randomizer

Version:
1.0
Author:
Johan Lindquist

Constructor Summary
RandomRandomizer()
           
 
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
 

Constructor Detail

RandomRandomizer

public RandomRandomizer()
Method Detail

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.