Code example for Random

0
 * @version $Revision: $ 
 */ 
 
public class RandomHash implements HashFunction<Request>
{ 
  private final Random _random = new Random();
 
  @Override 
  public int hash(Request request)
  { 
    return _random.nextInt();
  } 
}