add generateRandomCharacter and its test
Merge branch 'sec07'