There's of course a ton of luck involved but you won't get struck by lightning by sitting at home.
I've tried to increase my "luck" by forcing myself to do things that have an asymmetric payoff: meeting new people, writing blog posts, saying yes to things, etc
It's worked pretty well so far!