ddNTPs (dideoxynucleotide phosphates) are randomly selected along with dNTPs during the process of strand elongation, by the DNA polymerase responsible for synthesis.
However, because ddNTPs lack a 3' hydroxyl, the strand to which it was added is unable to elongate further.
ddNTPs halt chain elongation, and because they are fluorescently labelled for each nucleotide, it can be determined what nucleotide is present at a given position in a DNA strand.