Refactor random word return