Perhaps unsurprisingly, the transcendentalist author and advocate for civil disobedience took a passive approach to happiness.
As he detailed in "Walden," Thoreau preferred to break convention. He avoided habit. Perhaps through the commitment to randomness, he thought, he could find some larger, more cosmic sense of happiness.
The idea aligns nicely with other thinkers' message to live in the moment.