Starting a company often feels like a gamble, but a lot more is within your control than you might think.