It's both. There are many things you can do to improve your odds, including being in the right place at the right time, but at the end of the day there are a thousand random factors that you can't control that can make or break a business. And even among things you can control, many things that are obvious in retrospect are far from clear at the time that decisions need to be made.