Fixed randomWordGenerator variable type