generateRandomString() method refactored

generateRandomNumber() method added