Every endeavor involves 2 things: skill and luck. Depending on what the endeavor is, more of one may be needed than the other.
Concert pianist? Your odds of playing all the right notes in a concerto by luck are pretty low.
Actor? Anyone can do it. Bodybuilders, wrestlers, singers, comedians. Luck is paramount.
Technologist? My experience in software engineering is that it’s a skills-based profession. If you know things other people don’t know and you can solve problems other people can’t solve, you are the king or queen of the programming jungle.
That said, I can’t recommend a course or bootcamp or resume trick, and in a bad market, you may need some luck, but it’s a skills-based profession. Skills and hard work. Get behind the mule and plow.
Thus spoke The Programmer.