happytails.ai

CSV deterministic sampler

Create a repeatable sample of CSV records using a seed. Sample without replacement and retain each record's source number.

Paste CSV, choose a whole-number sample size and enter a seed. Identical input, size and seed produce the same selected records. Changing the input order changes the sample. Records are sampled without replacement and exported in their original source order. The added source-record column identifies the original one-based data-record position, excluding the header. A quoted multiline record counts once. Choose an unused name for this column. Download the sample and the JSON report, which records the seed and the versioned sampling algorithm. This is deterministic convenience sampling for reviewing data or making repeatable test subsets. It is not cryptographic randomness or a certified experimental allocation method. CSV strings are preserved in the preview; default formula protection changes flagged exported strings with an apostrophe prefix. Include a header row. Quote cells that contain commas or new lines. Results update as you type. Up to 1,000,000 characters.

Your result

Report a problem or share an idea.

How to use CSV deterministic sampler
  1. Paste the CSV and choose a sample size no larger than the input record count.
  2. Enter a seed and an unused source-record column name.
  3. Review the selected records, then download the sample and processing report.

Useful next steps

What to expect

Create a repeatable sample of CSV records using a seed. Sample without replacement and retain each record's source number. Paste CSV, choose a whole-number sample size and enter a seed. Identical input, size and seed produce the same selected records. Changing the input order changes the sample. Records are sampled without replacement and exported in their original source order. The added source-record column identifies the original one-based data-record position, excluding the header. A quoted multiline record counts once. Choose an unused name for this column. Download the sample and the JSON report, which records the seed and the versioned sampling algorithm. This is deterministic convenience sampling for reviewing data or making repeatable test subsets. It is not cryptographic randomness or a certified experimental allocation method. CSV strings are preserved in the preview; default formula protection changes flagged exported strings with an apostrophe prefix.

Try a small example

id,name
001,Ana
002,Bea
003,Cam
004,Dan
005,Eli