question: public static String randomString ( String sampler , int length ) { StringBuilder builder = new StringBuilder ( length ) ; for ( int i = 0 ; i < length ; i ++ ) builder . append ( sampler . charAt ( SEEDED_RANDOM . nextInt ( sampler . length ( ) ) ) ) ; return builder . toString ( ) ; }
target:  Create a string that is a random sample (with replacement) from the given string