What is the meaning of [marriage is a lottery]

Whether a marriage succeeds or fails is all a matter of luck; also applied to the choice of a marriage partner.