High-resolution numerical simulations of cracks driven by an internal pressure in a heterogeneous and brittle granular medium produce fragment-size distributions with the same characteristics as experiments on blasted cylinders of mortar and rock in both the fine-and the intermediate-size-fragment regions. To mimic full-scale blasts used, e.g., within the mining industry, the cracks propagate in a medium that is under compression, neutral, or under tension. In a compressive environment, shear fracture produces a large volume of fines, whereas in a neutral or tensile environment, unstable crack branching is responsible for a much smaller volume of fines. The boundary between the fine-and the intermediate-size fragments scales as the average grain size of the material. The ultimate goal is to develop a blasting process that minimizes the fines, which, in mining, are both an environmental hazard and useless for further processing.