Shotgun sequencing randomly shears genomic DNA into small pieces. Once the sequences are obtained, they are aligned and assembled into finished sequence.
Source
http://www.scq.ubc.ca/genome-projects-uncovering-the-blueprints-of-biology/