Is getting a book published more like winning the lottery than it is a sensible goal?

Corn is not dog food! No wheat! asked: I want to publish a book.
So do half a billion other people. LOL!
What are the odds of actually publishing fiction?