The odds that you drew those exact 5 cards are very low. You were lucky to draw those cards.
However, the odds that you end up with 5 cards anyway is 100%.
Its the same with your career. The odds that you ended up taking the exact path that you did, with all the serendipity and chance involved, is lucky. But the chance that any halfway decent programmer ends up with a high paying job is damn near 100% right now.
There are a lot of forks in the road on the way to success. Looking back, each of those forks looks lucky to you because they landed you in you current success. But you could have taken the opposite road at any of those forks and still been successful.