
Sample rows from a CSV
Take a sample of a CSV's data rows: the first N (head), N picked at random but kept in their original order (random), or the whole file shuffled and cut to N (shuffle). Seedable for a repeatable sample. Runs entirely on your device.
Sample rows from a CSV offers three modes. Head takes the first n rows; random picks n at random while keeping order; shuffle scrambles every row before cutting to n. A blank seed draws a value from the clock. Typed text hashes deterministically for a repeatable sample. Asking for more rows than the file holds returns every row.
Questions
What do head, random and shuffle each do?
head keeps the first n rows in order; random picks n rows at random but keeps them in their original order; shuffle scrambles every row first, then cuts to n.
What does the seed do?
A typed seed hashes deterministically with FNV-1a into the random generator, so the same seed and mode always give the same sample. Blank seed uses the clock, so each run differs.
What if n is bigger than the file?
The tool returns every row it has, capped at the file's row count.
Does head need a seed?
No, head always takes the first n rows regardless of seed.
What if n is not a whole number of 1 or more?
It is refused with a message saying n must be a whole number of 1 or more.