Accepted answer
If a lot has visibly segregated — some vials showing different appearance — then sampling the top and bottom of the shipment is worth doing.
Acceptance Sampling by Attributes defines the number of samples you need from a lot to claim a specified quality level at a specified risk — it is in ANSI standard Z1.4.
The statistical foundation here is well-established, which is why sampling plans from decades ago are still valid.
Lyophilised peptide homogeneity studies show that vial-to-vial variation is usually small but occasionally large, depending on the distribution in the freeze-dryer.
Assume segregation is possible, and design your sampling to catch it if it exists.