I ran into this by accident. The pool held 7 names, the allow-repeat switch was turned off, each draw took 1 name, and after clicking 10 times in a row the same name had hit 4 times while another name never appeared at all. Intuition says drawing without replacement means one gone, one fewer forever, but here the guarantee only covers the current round. To pin this down, I fed the tool template script into node:vm verbatim, exactly as published, and ran several rounds of pure Node measurement. The only thing I touched was the injected seed; not one character of the functions changed, and every number below comes from that setup.
Random source accounting: three Math.random call sites, no crypto
Across the full 16540-byte template, Math.random appears 3 times and Math.floor appears 3 times, while crypto, getRandomValues and seed each appear 0 times. There is only this one random path. The two branches run differently. With allow-repeat on, each draw independently takes a random index from the whole pool. With allow-repeat off, the whole pool gets one Fisher-Yates shuffle and the first count entries are taken. Easy to miss: the shuffle consumes random numbers in proportion to the pool size alone, independent of count - count only decides how much of the already-shuffled sequence gets sliced off.
Uniformity measured: a pool of 7, 10000 draws, spread 118
For reproducibility I replaced Math.random inside the vm with the seeded generator mulberry32(20261122): drawing from a pool of 7 items 10000 times, the expected frequency per name is 1428.6, the measured maximum is 1510 and the minimum is 1392, a spread of 118, which is 8.3% of the expectation, and the number of names that hit 0 times is 0. Running the same seed twice produces byte-identical result sequences; running the real Math.random twice instead gave spreads of 72 and 114, neither reproducing the other. In other words the spread itself is sampling noise. What replicates is the shape of the distribution, not the specific ordering.
Figure 1: bar comparison of the spread across the three measured scales. Bar length is proportional to the spread, and the labels on the right give the maximum and minimum frequencies from the same batch of runs.
Without replacement only holds inside a round: the pool never empties
Back to those first ten clicks. With allow-repeat off, every round re-runs a Fisher-Yates shuffle over the whole pool and then takes the first count entries, so the without-replacement guarantee applies only within that one round, and nothing at all is shared from one round to the next. That is why the same n7 can hit 4 times while n4 hits none - at the code level this is completely normal. The drawn counter in the statistics bar confirms the same reading: it always equals the entry count of the last round, never a running total of all rounds. The pool has no cross-round memory, so it can naturally never be emptied, and there is no branch in the code along the lines of the pool is used up after this round.
Figure 2: hit cells across ten consecutive clicks with the repeat switch off - the same name landed 4 times across rounds while another name stayed empty throughout.
Degenerate input is what actually gets feedback. With an empty pool the code takes the branch that reports the candidate pool is empty, and the rolling animation never starts. With a single-name pool, entering 2 as the count returns the message that, when duplicates are not allowed, the draw quantity cannot exceed the candidate count of 1. Both strings were captured at the script layer during measurement. How those notices look in a browser and how long they stay was not rendered or measured by this batch of pure Node stubs, so no claim is made.
Scale comparison: three tiers side by side, no extrapolation
Measuring only the pool-of-7 tier says nothing about scale, so the same batch of runs added two larger pools. The three tiers are laid out side by side below.
| Pool size | Draws | Expected per name | Min | Max | Spread |
|---|---|---|---|---|---|
| 7 | 10000 | 1428.6 | 1392 | 1510 | 118 |
| 50 | 10000 | 200 | 170 | 234 | 64 |
| 300 | 30000 | 100 | 76 | 126 | 50 |
None of the three tiers produced a name that was never hit. Pool sizes differ, and so do the draw counts, so this set can only be read side by side: the spread follows the expected per-name frequency and the overall scale. What this page measured is exactly these three tiers; it is not a promise about any other size, let alone any guarantee of fairness.
Clamping accounting: the count box has no max, parseInt rewrites in silence
The original attributes of the count input are only value="1" and min="1" - there is no max, and no upper-bound constant can be found anywhere in the code either. Entering 100000 really produced 100000 entries, and the copy string was 299999 characters long, pure LF line endings with no header row. Entering 1000000 finished in 2722ms of wall clock - one reading from a pure Node stub; another machine will simply differ, and non-reproduction is normal. In the same run, the rolling animation constants were duration=1200 and interval=80, and one draw wrote frames 14 times (nominally 15 frames). The random index rolling inside those frames only changes the displayed text and has nothing to do with the final result: the animation and the output are two independent roads.
How parseInt rewrites count input in silence, laid out for comparison:
| Input value | Where the code takes it |
|---|---|
| 0, abc, 1e3 | All washed down to 1 |
| 2.9 | Truncated to 2 |
| 0x10 | Read as 16 in hexadecimal |
| -5 | The only spelling that triggers the at-least-1 notice |
In other words, this box guards the bottom and not the top: the lower bound is held by parseInt washing values into range plus one notice as a backstop, while the upper bound does not exist in the code at all - whatever size you enter is the size it really runs.
Pool state residue: clearPool only clears the uploaded pool
Clicking clear on the Random File Picker page has a behavioral boundary worth recording as well. clearPool clears only the uploaded pool: afterwards the pool count reads 0 and the preview and statistics are gone, but the result area DOM and the copy string still hold the 2 entries from the previous round, and copying can be clicked again right away. Only when you then press draw does it report that the candidate pool is empty. The upload side also carries two same-name ambiguities. Two records with the same file name but different paths occupy 2 slots in the pool. A text list whose three rows are all named 甲 enters the pool with length 3, and drawing 3 returns three 甲 entries that never merge into one. Folder drops keep only the name, mentioned in passing and not re-measured here.
Related questions
Q: A name already drawn can hit again next round - is it broken?
No. Without replacement only guarantees no repeats inside the current round; every click on draw is a fresh round with a fresh shuffle, and the statistics bar performs no cross-round accumulation either. If you want to verify this yourself, inject a seed and rerun: the mulberry32(20261122) used in the measurements, run twice, produced byte-identical result sequences, showing this path follows only the pool and the round, with no hidden state.
Q: Does a spread of 118 mean the distribution is uneven?
The 118 is only sampling noise for the pool-of-7 tier under 10000 draws, equal to 8.3% of the expected per-name frequency of 1428.6; switching to the real Math.random and running twice instead yields 72 and 114, neither reproducing the other. It describes where this one batch of measured frequencies landed, not a uniformity promise that can be extrapolated to other pools or rounds.
Q: Not satisfied with Math.random and want a stronger random source?
All three places where this page takes randomness go through Math.random, and crypto and getRandomValues appear 0 times - that is the code fact of this page. If you do need the crypto route, look at the companion tool's Random Number Generator page; that direction is where the mechanism covered in the other article, rejection sampling and the no-repeat cutoff, actually lives. This page's script has no corresponding code for it, so not a single line of that accounting is brought over here.