CharSequence (Random random) { int textLength = random.nextInt(10); StringBuilder b = new StringBuilder(); for (int i = 0; i < textLength; i++) { b.append(switch (random.nextInt(5)) { case 0 -> '\t'; case 1 -> '\n'; default -> ' '; }); } return b; }