The structural short-range order of amorphous compounds with the composition is investigated by means of ab initio molecular dynamics. The interatomic forces have been calculated using a plane-wave pseudopotential implementation of density-functional theory. Molecular dynamics has been performed in the nearly-microcanonical ensemble using the Berendsen algorithm to keep the systems at the desired temperature. The compounds are characterized using the pair distribution functions, angle distribution functions, coordination numbers, histograms of coordination numbers, and a description of the molecular units of the compounds. According to our simulations, and are more disordered than and . In , the most abundant clusters are , , , and . In the case of and , having structural units of types similar to those found in crystalline phases of the Cd-Te-O system, they show no predominant type of cluster. This absence of predominant building blocks is a signature of chemical disorder, and it seems that Te and O atoms can be freely exchanged, as well as Cd to a lesser extent. Finally, in , the most abundant clusters are , , , and .