Dialectical materialism holds that everything, any relationship and any process in the real world has the dual attributes of inevitability and contingency. Inevitability is always manifested through a lot of contingency, and there is no pure necessity.
Extended data
Chance is the expression and supplement of inevitability. In the process of all kinds of contingency, there are inevitable things, not pure contingency. The behavior of a single object governed by dynamic laws can only deviate from the general direction within a certain range, and contingency is based on the uncertainty of inevitability.
For the behavior of a single object governed by non-dynamic laws, due to the complexity of influencing factors or the particularity of the object itself, the motion state of a single object is accidental, but it still shows statistical inevitability on the whole. The contingency of a single object is a special manifestation of universal inevitability, and changes in the environment and conditions that affect the whole will inevitably affect each individual.
Baidu encyclopedia-inevitability and contingency