Sampling with and without replacement
Choose the right sampling method for repeated selections, audits and distinct winners.
With replacement, a selected item is available again for the next draw. Without replacement, it is removed from the eligible positions until the sample is complete. For independent equal-probability selections, replacement allows identical results across draws.
From five distinct labels, two ordered draws with replacement have 5² = 25 possibilities, including five equal-label pairs. Without replacement they have 5 × 4 = 20 possibilities and no repeated position. In the latter case each label has inclusion probability 2/5 = 40%.
Use the sample generator to inspect ten of fifty records without repeating positions. Repeated text in different rows can still appear twice. Sampling a biased list, or choosing only the easiest records, may produce misleading conclusions even with a uniform algorithm.
A production-engine test drew 100000 numbers from 1 to 1,000,000 without replacement; 100000 distinct values were observed. Measured 2026-11-25 on Trading-PC, Node v26.8.2 win32 x64 using the production engine and Node Web Crypto, not a browser benchmark. This single run is illustrative, not proof of fairness.
Related tools
References
LHTSOFT Random