The book of “little pep talks” from the Hamilton and In The Heights creator will be published by Random House.