Returns the next random string of length LENGTH.
(int length)
| 20 | |
| 21 | /** Returns the next random string of length LENGTH. */ |
| 22 | public static String randomString(int length) { |
| 23 | char[] someChars = new char[length]; |
| 24 | for (int i = 0; i < length; i++) { |
| 25 | someChars[i] = (char) (r.nextInt(ALPHABET_SIZE) + 'a'); |
| 26 | } |
| 27 | return new String(someChars); |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Returns true if string S consists of characters between |
no outgoing calls
no test coverage detected