public static String[] createFixedRandomStrings(int count){
  String[] strings=new String[count];
  Random lengthRandom=new Random();
  lengthRandom.setSeed(SEED);
  Random stringRandom=new Random();
  stringRandom.setSeed(SEED);
  for (int i=0; i < count; i++) {
    int nextLength=lengthRandom.nextInt(MAX_LENGTH - MIN_LENGTH - 1);
    nextLength+=MIN_LENGTH;
    strings[i]=RandomStringUtils.random(nextLength,0,CHARS.length,true,true,CHARS,stringRandom);
  }
  return strings;
}

public static String [ ] createFixedRandomStrings ( int count ) { String [ ] strings = new String [ count ] ; Random lengthRandom = new Random ( ) ; lengthRandom . setSeed ( SEED ) ; Random stringRandom = new Random ( ) ; stringRandom . setSeed ( SEED ) ; for ( int i = 0 ; i < count ; i ++ ) { int nextLength = lengthRandom . nextInt ( MAX_LENGTH - MIN_LENGTH - 1 ) ; nextLength += MIN_LENGTH ; strings [ i ] = RandomStringUtils . random ( nextLength , 0 , CHARS . length , true , true , CHARS , stringRandom ) ; } return strings ; }
creates the same random sequence of strings .
