public static String randomIdentifer ( int len ) { final String AB = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ; StringBuilder sb = new StringBuilder ( len ) ; for ( int i = 0 ; i < len ; i ++ ) sb . append ( . charAt ( rnd . nextInt ( . length ( ) ) ) ) ; return sb . toString ( ) ; }
Produce a random identifer of the given length consisting only of uppercase letters .