The phrase
"box of chocolates" refers to something that is unpredictable or uncertain, just like when you open a
box of chocolates and don't know which flavor you'll get. It means that you can't always foresee the outcome of a situation or know what will happen next.
Full definition