Specify the target before producing draws
A generated sample is meaningful only relative to a target: a finite list of units, an empirical distribution in an observed dataset, or a stated probability distribution. The mechanism should make inclusion probabilities or distributional probabilities clear. A random-looking list without a target and rule is not a defensible sample.
For a finite population, drawing without replacement prevents repeated units and gives a simple random sample when each subset of the chosen size is equally likely. Drawing with replacement permits repeats and instead produces independent draws from the chosen distribution. These mechanisms answer different questions even when they use the same list.
Pseudorandom generators can be seeded for reproducibility. A seed makes a computational sequence repeatable for audit or debugging; it does not prove that the mechanism matches the intended target distribution. Check the target, the draw rule, and any weights before interpreting downstream summaries.
A simulation requires independent labels with probabilities 0.60 for red, 0.25 for blue, and 0.15 for green. Which sampling rule is appropriate?
Two analysts use the same algorithm, target distribution, and seed. What should they expect from the sampling code?