Make generateRandomText public