Research tool

Sample Group Randomizer

Assign sample IDs to fixed-size groups using a seed and export the reproducible assignment as CSV.

Continue your work

Choose a related tool for the next step. Each opens with a fresh workspace.

Practical guide

How to use Sample Group Randomizer

Create a reproducible fixed-size allocation for a teaching example, benchmark, or research workflow. Keep the ordered source list, group sizes, seed, and algorithm version with the resulting assignment.

Step by step

  1. Enter one unique sample ID per line.
  2. Enter at least two named groups with the desired counts. The counts must add up to the number of samples.
  3. Enter or generate a seed, randomize the assignments, and download the CSV.

Example

InputS01 to S04; Control: 2 and Treatment: 2; seed experiment-1
ResultFour unique IDs assigned to two groups of two

How it works

A seed initializes a deterministic pseudorandom number generator. A Fisher–Yates shuffle permutes the input IDs and the tool assigns consecutive slices to the configured groups.

Important limitations

  • This version does not balance covariates or perform stratified assignment.
  • Input order and group order affect the result. Store both alongside the seed to reproduce it.

Real workflows

When this tool is useful

Divide a set of benchmark samples

Specify exact sizes for two evaluation groups and record the seed with your analysis notes. Keep the original ordered manifest so a collaborator can rerun the allocation.

Review the result

What to check before using the output

Verify that every expected ID appears once and that the counts match the plan. Inspect spreadsheet imports, especially IDs with leading zeros or characters that spreadsheet software treats specially.

  • Keep the original source for comparison.
  • Review the result with the target workflow in mind.
  • Save a verified result with your project notes.

Choose the right method

When another tool is better

Use your study's approved randomization workflow when you need concealed allocation, block randomization, stratification, or regulated study records.

Privacy and browser behavior

Inputs are processed in the active browser tab. Downloaded results may contain unpublished data; choose where to store or share them.

Frequently asked questions

Will the same seed always give the same groups?

With the same ordered IDs, ordered group specifications, and algorithm version, the assignment is reproducible.