public static String getRandomString ( final int size , final int start , final int length ) { final StringBuilder buff = new StringBuilder ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { buff . append ( ( char ) ( RAN . nextInt ( length ) + start ) ) ; } return buff . toString ( ) ; }
Creates a size byte long unicode string . All codes are &gt ; = start and &lt ; start + length