Randomized text generator using Java