import java.util.*;
/******************************************************************
A class to test the Selector class of Assignment 4, CS 146,
Spring 2003
******************************************************************/
public class A4
{
/**
Creates a pseudorandomly generated string of lower-case
characters whose length varies randomly & uniformly
between 3 and 6.
@param r a Random object
used to generate the string
@return the string
*/
public static String getRandomString(Random r) {
int length = 3 + r.nextInt(4);
StringBuffer s = new StringBuffer(length);
for (int i=0; i