public String modify(String sql){
  int len=getLog(10);
  for (int i=0; i < len; i++) {
    int pos=getInt(sql.length());
    if (getBoolean(50)) {
      String badChars="abcABCDEF\u00ef\u00f6\u00fcC1230=<>+\"\\*%&/()=?$_-.:,;{}[]";
      char bad=badChars.charAt(getInt(badChars.length()));
      sql=sql.substring(0,pos) + bad + sql.substring(pos);
    }
 else {
      if (pos >= sql.length()) {
        sql=sql.substring(0,pos);
      }
 else {
        sql=sql.substring(0,pos) + sql.substring(pos + 1);
      }
    }
  }
  return sql;
}

public String modify ( String sql ) { int len = getLog ( 10 ) ; for ( int i = 0 ; i < len ; i ++ ) { int pos = getInt ( sql . length ( ) ) ; if ( getBoolean ( 50 ) ) { String badChars = "abcABCDEFïöüC1230=<>+\"\\*%&/()=?$_-.:,;{}[]" ; char bad = badChars . charAt ( getInt ( badChars . length ( ) ) ) ; sql = sql . substring ( 0 , pos ) + bad + sql . substring ( pos ) ; } else { if ( pos >= sql . length ( ) ) { sql = sql . substring ( 0 , pos ) ; } else { sql = sql . substring ( 0 , pos ) + sql . substring ( pos + 1 ) ; } } } return sql ; }
randomly modify a sql statement .
