public List<String> makeURLList(String shard){
  List<String> urls=StrUtils.splitSmart(shard,"|",true);
  for (int i=0; i < urls.size(); i++) {
    urls.set(i,buildUrl(urls.get(i)));
  }
  if (urls.size() > 1)   Collections.shuffle(urls,r);
  return urls;
}

public List < String > makeURLList ( String shard ) { List < String > urls = StrUtils . splitSmart ( shard , "|" , true ) ; for ( int i = 0 ; i < urls . size ( ) ; i ++ ) { urls . set ( i , buildUrl ( urls . get ( i ) ) ) ; } if ( urls . size ( ) > 1 ) Collections . shuffle ( urls , r ) ; return urls ; }
creates a randomized list of urls for the given shard .
