Crystals: Building patterns with randomness