private void removeLetter(StringBuilder text){
  int length=text.codePointCount(0,text.length());
  if (length < 2) {
    return;
  }
  int index=Rand.rand(length);
  int chrIndex=text.offsetByCodePoints(0,index);
  int chr=text.codePointAt(chrIndex);
  int toRemove=Character.charCount(chr);
  for (int i=0; i < toRemove; i++) {
    text.deleteCharAt(chrIndex);
  }
}

private void removeLetter ( StringBuilder text ) { int length = text . codePointCount ( 0 , text . length ( ) ) ; if ( length < 2 ) { return ; } int index = Rand . rand ( length ) ; int chrIndex = text . offsetByCodePoints ( 0 , index ) ; int chr = text . codePointAt ( chrIndex ) ; int toRemove = Character . charCount ( chr ) ; for ( int i = 0 ; i < toRemove ; i ++ ) { text . deleteCharAt ( chrIndex ) ; } }
remove random letter from a stringbuilder , if it has at least length 2 .
