renaming of generateRandomString into randomString