Toolvito

Calculates on this device. File exports run online.

Experiment Group Allocator

Paste the participants, one on each line, name the groups and the ratio, and choose a method. The allocator gives each participant a group and the group sizes. The same seed and list always give the same allocation, so you can repeat it and show how it was made.

Enter your values

Your values

One on each line, in the order they join. For strata add a comma and the stratum: P001, Site A.

Names separated by commas.

Whole numbers separated by colons, one for each group: 1:1, 2:1, 1:1:1.

A multiple of the sum of the ratio (4 for 1:1 means blocks of 2 + 2).

Any text: the same seed gives the same allocation. Leave empty for a random seed (it is shown so you can repeat it).

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

Allocation checked on the server

Allocation checked on the server

Uses the participants, groups and seed of the result above. The server repeats the allocation from the same seed with its own Python code and compares every assignment with the page’s.

The calculator above works on your device. When you run a task in this section, Toolvito receives the values and result you submit to make the file or run the check. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to use the experiment group allocator

  1. Paste the participants in the order they join, one on each line. For strata add a comma and the stratum (for example P001, Site A).
  2. Type the group names separated by commas and the ratio (1:1, 2:1, 1:1:1).
  3. Choose simple randomization, permuted blocks or stratified permuted blocks, and the block size.
  4. Type a seed and keep it, or leave it empty for a random one that the page shows. Then read and copy the allocation.

The methods

  • Simple randomization: each participant is drawn alone with chances in the ratio. In small studies the groups can end up unequal.
  • Permuted blocks: each block holds every group in the ratio, shuffled; after each full block the groups are exactly in the ratio. The block size must be a multiple of the sum of the ratio.
  • Stratified permuted blocks: separate blocks for each stratum (a site, sex or age band), so every stratum is balanced.
  • Seed: the seed text is hashed with SHA-256 and starts a SplitMix64 generator; whole numbers are drawn without modulo bias.

Worked example

Twelve participants P001 to P012, Control and Treatment 1:1, blocks of 4, seed trial-2026: P001 and P002 go to Treatment, P003 to P005 to Control, and the groups end with 6 each.

Limits you should know

  • Keep the block size and the seed from the people who enrol participants, so they cannot guess the next group.
  • This is an allocation list, not a full trial randomization system: it does not hide the list, log who saw it or handle withdrawals.
  • Everything runs in your browser; the list is sent to the server only if you ask for the check.

Related tools