Randomization List Generator.
Make a reproducible allocation list for a randomised trial: simple, permuted block or stratified, with unequal ratios and up to six arms.
Set the arms, ratio and block sizes, then download the list with a generation record. The same seed and settings always rebuild the same list. Everything runs in your browser and nothing is sent to WeGuide.
Allocation list
No list yet
The full CSV keeps block numbers and sizes for the trial statistician. The allocation CSV leaves them out, for the person or system that assigns participants. The generation record holds the seed, settings and file checksums needed to rebuild and verify the list.
Generating a list is not concealing it. This tool creates a random allocation sequence for planning, teaching or handing to an independent person or central system. Anyone who holds the list, or the seed and settings, can see every future allocation. Your list is created in your browser and is not sent to WeGuide.
How to Use the Randomisation List Generator
- Choose the method: simple randomisation, permuted blocks, or stratified permuted blocks. Permuted blocks with sizes chosen at random suit most small and medium trials.
- Name the arms and set the ratio, for example 1:1 or 2:1, with up to six arms. Arm order sets the codes A to F that appear in the files.
- Choose block sizes. The tool offers only sizes that hold your ratio exactly. The defaults are two, three and four times the ratio total, and each block’s size is drawn at random from them.
- Enter the list length. For a stratified list, add factors such as site and their levels, and enter the length per stratum.
- Keep or replace the seed. The same seed and settings rebuild the identical list in any browser, so record them and keep them private.
- Download the CSV files and the generation record, then hand the list to the independent person or central system that will allocate participants.
The list is generated in your browser and nothing you enter is sent to WeGuide. If you are planning a trial, our overview of randomised controlled trials on WeGuide shows how screening, consent and data collection fit around randomisation.
Why Randomise?
Random allocation stops anyone choosing which treatment the next participant receives, which is how bias creeps into the comparison. It also lets you use probability theory to judge whether a difference between groups is larger than chance would produce[1]. ICH E9 adds that randomisation tends to produce groups in which known and unknown prognostic factors are similar[3].
Of these benefits, preventing selection bias at trial entry is usually the most important[2]. Systematic schemes such as alternation, date of birth or hospital numbers are not random and should not be reported as random, because whoever enrols participants can predict the next allocation and choose who to recruit[1][2]. Once participants are randomised, our guide to participant retention covers keeping them in the trial.
How the List Is Generated
The seed is hashed with SHA-256[5] into a master key, and each stratum gets its own key and its own stream of random numbers:
master key = SHA-256(wg-randlist-v1, 0x00, seed)
stratum key = SHA-256(master key, stratum level numbers)
random words = SHA-256(stratum key, 0), SHA-256(stratum key, 1), …
Whole numbers come from these words by rejection sampling, so every outcome has exactly the same chance. A block of size b holds (b ÷ S) × r copies of each arm, where r is the arm’s ratio and S the ratio total, and is shuffled with Durstenfeld’s version of the Fisher and Yates algorithm[6]:
block of 6 at 1:1 = A A A B B B, then for i from 6 down to 2, swap position i with a random position from 1 to i
Simple randomisation draws one whole number per participant and maps it to an arm in proportion to the ratio. The method is published as wg-randlist-v1, so an independent statistician can rebuild a list with any SHA-256 library. We checked this implementation against an independent Python version on fixed test vectors, and its output passed a battery of 37 statistical tests.
Simple, Blocked, Stratified or Minimisation?
Each method trades unpredictability against balance. The right choice depends on trial size, how many sites you have and whether recruiters could learn past allocations.
Simple randomisation
The least predictable method. Schulz and Grimes found no other approach better at preventing bias[4]. Group sizes can differ by chance: with 100 participants at 1:1, the chance of a 60:40 split or worse is 5.7%, and with 200 it is 0.57% (WeGuide calculation, exact binomial). For fewer than about 200 participants, some restriction may be useful[2].
Permuted blocks
Every block holds the exact ratio, so the arms are balanced at the end of each block and close to it in between. With two arms at 1:1, group sizes can never differ by more than half the block length[7]. The cost is predictability: someone who learns the block size can work out some of the next allocations[2].
Stratified permuted blocks
A separate block list for each combination of factor levels, such as site and disease severity, keeps the arms balanced within each stratum. Stratification needs blocks inside each stratum to work[2][7], and it breaks down when strata are many relative to the sample[8].
Minimisation
Allocates each new participant to the arm that most reduces imbalance across several factors, ideally with a random element such as an 80% chance[9]. It depends on the participants already in the trial, so it cannot be a list made in advance and needs a central system. This tool does not generate it. ICH E9 advises against fully deterministic dynamic allocation[3].
Choosing Block Sizes
ICH E9 asks for blocks short enough to limit imbalance but long enough to avoid predictability towards the end of each block, with staff kept unaware of the length, and notes that two or more lengths chosen at random achieve the same purpose[3]. Schulz and Grimes recommend varying the size at random and using larger blocks, particularly in unblinded trials[4], and found that investigators overuse fixed blocks[23].
Avoid blocks of two. In 179 open trials in four general medical journals, heterogeneity in baseline age, a marker of subversion, was 62% with fixed blocks of four and 40% with variable blocks that included two, against 0% with simple randomisation and with minimisation[10].
Random sizes reduce certainty, not tendency. Under the model of Blackwell and Hodges, random block sizes reduce the bias that relies on knowing the next allocation for certain, but not the bias from guessing the arm that is behind[11][22]. Our calculation shows the size of both effects for a 1:1 trial:
| Block sizes, 1:1 | Correct guesses | Deduced with certainty |
|---|---|---|
| Simple randomisation | 50.1% | 0% |
| 2, fixed | 75.0% | 50.0% |
| 4, fixed | 70.8% | 33.3% |
| 6, fixed | 68.3% | 25.0% |
| 2, 4 or 6, at random | 70.3% | 4.1% |
| 4, 6 or 8, at random (default) | 68.2% | 2.3% |
WeGuide calculation, 200,000 allocations per design. Correct guesses: a recruiter who always guesses the arm that has fallen behind. Deduced with certainty: a recruiter who knows the possible sizes and every past allocation, but not where blocks start.
Why the Defaults Are 2, 3 and 4 Times the Ratio Total
Moving from fixed blocks of 4 to sizes of 4, 6 or 8 drawn at random cuts certain deductions from a third to about 2% in our calculation, yet a recruiter who sees past allocations still beats chance. That is why concealment and blinding matter more than block design. The defaults leave out the smallest size, which the evidence above links with subversion[10], vary at random as ICH E9 suggests[3], and stop at four times the ratio total, because larger blocks control balance less well if a trial stops early or is analysed part way through[7][22]. For a 2:1 ratio the defaults are 6, 9 and 12.
How Many Strata?
Stratifying by important prognostic factors can help, with the most benefit in small trials, but ICH E9 says more than two or three factors is rarely necessary, is less successful at achieving balance and is logistically troublesome[3]. Stratification may prevent type I error and improve power in trials of fewer than 400 patients, but only when the factors have a large effect on prognosis[12].
Stratified assignment starts to fail when the number of strata is greater than about half the sample size[8]. The reason is arithmetic (WeGuide calculation): at 1:1 with blocks of up to 8, the two arms can differ by up to 4 participants within a stratum at any moment, and these differences add up across strata. Twelve strata could leave the arms 48 apart. Enter your planned total enrolment and the tool warns when strata exceed half of it.
The analysis has to reflect the design. Account for stratification factors in the primary analysis[3][13], because ignoring them makes confidence intervals too wide and lowers power[14]. In a review of trials in four leading journals, only 26% adjusted for all balancing factors[15].
Generating a List Is Not Concealing It
Successful randomisation depends on two steps: an unpredictable sequence, and concealment of that sequence from the people who enrol participants[2]. Without concealment, even a proper random sequence can be subverted[16]. In 250 trials, treatment effects measured as odds ratios were exaggerated by 41% when concealment was inadequate[17], and a later study of 1,346 trials found the bias mainly in trials with subjective outcomes[18].
Central assignment, such as a pharmacy or a central computer or telephone system, is especially desirable[2], and ICH E9 asks for randomisation to be organised centrally in multicentre trials[3]. Before you use a list in a live trial:
- Ask someone who does not recruit, enrol or assess participants to generate the list and keep it.
- Allocate through a central randomisation system, a pharmacy, or another concealment method approved for your trial. Do not share the list, the block sizes or the seed with recruiting staff.
- Store the generation record with the same access controls as the list, because it can recreate the whole sequence.
- Generate the list once. Choosing between lists because one looks more balanced removes the randomness you need.
- Check your protocol and your trial statistician’s plan. This tool supports planning and does not replace either.
Randomisation follows screening and electronic consent, and the staff who run those steps are the people the list must stay hidden from.
What to Write in the Protocol and Analysis Plan
SPIRIT 2025 asks the protocol to describe the method and the stratification factors, with blocking details kept in a separate document that is unavailable to people who enrol participants or assign interventions[19]. ICH E9 also keeps block length out of the protocol[3]. The statistical analysis plan should say how the stratification factors enter the primary analysis[13].
In the trial report, CONSORT 2025 asks who generated the sequence and how, including the software (item 17a), the type of randomisation with any stratification, blocking and block sizes (17b), the concealment mechanism (18), and whether the people who enrol participants and assign interventions could see the sequence (19)[20]. Reporting has been weak: in 2010 the method of randomisation was unclear in 37% of 258 trials in four leading journals[15]. The tool drafts protocol and report wording from your settings.
If you use an unequal ratio, report it and the reason. Of 65 trials with unequal randomisation, 57% did not say why, and only 22% appeared to account for it in the sample size[21]. For comparing two means, a 2:1 ratio needs 12.5% more participants in total than 1:1 for the same power, and 3:1 needs 33.3% more (WeGuide calculation).
Reproducing and Checking a List
ICH E9 asks that a randomisation schedule be reproducible if the need arises[3]. The seed, the settings and the algorithm version rebuild the identical list, and the generation record holds a SHA-256 checksum of each CSV so you can confirm a match byte for byte.
- A shorter list with the same seed is the start of a longer one, so you can extend a list without changing the rows already used.
- Adding a level at the end of a factor leaves the existing strata unchanged.
- Renaming arms or levels changes no allocation, but reordering them does.
Limitations
- No concealment. The tool does not hide allocations, handle emergency unblinding or number drug kits. Those need a central randomisation system.
- Lists only. Minimisation and response adaptive designs depend on the participants already in the trial, so they cannot be made as a list in advance.
- Plain text. Labels and seeds are limited to plain ASCII characters, so the files and the seed behave the same in every browser and spreadsheet.
- Not validated for regulated use. Ask your trial statistician to review the design, and use a validated system for live allocation in regulated trials.
For other planning questions, see our clinical trial solutions.
Randomising participants in a WeGuide study?
WeGuide randomises participants into treatment arms inside the study app, with configurable allocation ratios, alongside eScreening, eConsent and protocol based scheduling.
Frequently Asked Questions
Answers about block sizes, stratification, seeds and how to use a randomisation list safely in a trial.
Have another question?What is the difference between simple, block and stratified randomisation?
Simple randomisation allocates every participant independently, like a weighted coin, so it is the least predictable method but group sizes can drift apart in small trials. Block randomisation fills short blocks that each hold the exact ratio, so groups stay close in size. Stratified randomisation runs a separate block list inside each subgroup, such as each site, so the arms also stay balanced within that subgroup.
What block size should I use?
Use two or more block sizes chosen at random, and keep them from anyone who recruits or allocates participants, as ICH E9 advises. Avoid blocks of two: a review of 179 open trials linked variable blocks that include two with subversion. This tool defaults to two, three and four times your ratio total, which gives sizes of 4, 6 and 8 for a 1:1 trial.
Can I use this list to allocate participants directly?
Not on its own, because a list is only the sequence. Allocation concealment is a separate step that stops recruiters from seeing the next allocation before a participant joins the trial, ideally through a central randomisation system or a pharmacy. Give the list to someone independent of recruitment, or load it into a central system, before recruitment starts.
How do I set up a 2:1 allocation ratio?
Enter 2 for one arm and 1 for the other. Block sizes must then be multiples of 3, such as 6, 9 and 12, so that every block holds the exact ratio, and the tool offers only those sizes. For comparing two means, a 2:1 design needs about 12.5% more participants in total than a 1:1 design for the same power, by WeGuide calculation.
How many stratification factors can I use?
Usually no more than two or three, as ICH E9 advises. When the number of strata exceeds about half the sample size, stratified blocks start to lose the balance they are meant to give. With many factors, consider minimisation run by a central system, and remember to adjust for the stratification factors in the analysis of the trial.
Why does my list have more rows than I asked for?
Block lists always finish on a complete block, so the ratio is exact in every block. The extra rows at the end are never used if enrolment stops earlier. For stratified lists, make each stratum long enough for the most participants that stratum could ever enrol, because every stratum has its own block list.
How do I reproduce a list later?
Keep the generation record. The seed, the settings and the algorithm version rebuild the identical list in any browser, and the record holds a SHA-256 checksum of each CSV file so you can confirm that the rebuilt list matches. ICH E9 asks that a randomisation schedule be reproducible if the need arises.
Should the seed be kept secret?
Yes. Anyone with the seed and the settings can rebuild the whole list, so store the seed with the same access controls as the list itself. Use the generated 128 bit seed rather than a word or a date that someone could guess, and keep it out of the protocol.
Should block sizes go in the protocol?
No. ICH E9 says details that make the sequence predictable, such as block length, should not be in the protocol, and SPIRIT 2025 asks for blocking details in a separate document that people who enrol participants cannot see. Report the block sizes, and whether they varied, in the final paper under CONSORT 2025 item 17b.
What should I report about randomisation in my paper?
Report who generated the sequence and how, including the software (CONSORT 2025 item 17a), the type of randomisation with any stratification and block sizes (17b), the concealment mechanism (18), and whether the people who enrol participants and assign interventions could see the sequence (19). The tool drafts wording for 17a and 17b from your settings.
Related Research Tools
Free tools for planning and running clinical research, built on published methods.
References
- Altman DG, Bland JM. Statistics notes. Treatment allocation in controlled trials: why randomise? BMJ. 1999;318(7192):1209. PubMed 10221955
- Hopewell S, Chan AW, Collins GS, et al. CONSORT 2025 explanation and elaboration: updated guideline for reporting randomised trials. BMJ. 2025;389:e081124. PubMed 40228832
- International Council for Harmonisation. ICH E9: Statistical principles for clinical trials. Step 4, 5 February 1998, sections 2.3 and 5.7. ICH E9 guideline (PDF)
- Schulz KF, Grimes DA. Generation of allocation sequences in randomised trials: chance, not choice. Lancet. 2002;359(9305):515-519. PubMed 11853818
- National Institute of Standards and Technology. Secure Hash Standard (SHS). FIPS PUB 180-4. 2015. doi:10.6028/NIST.FIPS.180-4
- Durstenfeld R. Algorithm 235: Random permutation. Commun ACM. 1964;7(7):420. doi:10.1145/364520.364540
- Altman DG, Bland JM. How to randomise. BMJ. 1999;319(7211):703-704. PubMed 10480833
- Therneau TM. How many stratification factors are “too many” to use in a randomization plan? Control Clin Trials. 1993;14(2):98-108. PubMed 8500309
- Altman DG, Bland JM. Treatment allocation by minimisation. BMJ. 2005;330(7495):843. PubMed 15817555
- Clark L, Burke L, Margaret Carr R, Coleman E, Roberts G, Torgerson DJ. A review found small variable blocking schemes may not protect against selection bias in randomized controlled trials. J Clin Epidemiol. 2022;141:90-98. PubMed 34520850
- Matts JP, Lachin JM. Properties of permuted-block randomization in clinical trials. Control Clin Trials. 1988;9(4):327-344. PubMed 3203524
- Kernan WN, Viscoli CM, Makuch RW, Brass LM, Horwitz RI. Stratified randomization for clinical trials. J Clin Epidemiol. 1999;52(1):19-26. PubMed 9973070
- European Medicines Agency. Guideline on adjustment for baseline covariates in clinical trials. EMA/CHMP/295050/2013. 2015. EMA guideline (PDF)
- Kahan BC, Morris TP. Improper analysis of trials randomised using stratified blocks or minimisation. Stat Med. 2012;31(4):328-340. PubMed 22139891
- Kahan BC, Morris TP. Reporting and analysis of trials using stratified randomisation in leading medical journals: review and reanalysis. BMJ. 2012;345:e5840. PubMed 22983531
- Schulz KF, Grimes DA. Allocation concealment in randomised trials: defending against deciphering. Lancet. 2002;359(9306):614-618. PubMed 11867132
- Schulz KF, Chalmers I, Hayes RJ, Altman DG. Empirical evidence of bias. Dimensions of methodological quality associated with estimates of treatment effects in controlled trials. JAMA. 1995;273(5):408-412. PubMed 7823387
- Wood L, Egger M, Gluud LL, et al. Empirical evidence of bias in treatment effect estimates in controlled trials with different interventions and outcomes: meta-epidemiological study. BMJ. 2008;336(7644):601-605. PubMed 18316340
- Chan AW, Boutron I, Hopewell S, et al. SPIRIT 2025 statement: updated guideline for protocols of randomised trials. BMJ. 2025;389:e081477. PubMed 40294953
- Hopewell S, Chan AW, Collins GS, et al. CONSORT 2025 statement: updated guideline for reporting randomised trials. BMJ. 2025;389:e081123. PubMed 40228833
- Dumville JC, Hahn S, Miles JN, Torgerson DJ. The use of unequal randomisation ratios in clinical trials: a review. Contemp Clin Trials. 2006;27(1):1-12. PubMed 16236557
- Efird J. Blocked randomization with randomly selected block sizes. Int J Environ Res Public Health. 2011;8(1):15-20. PubMed 21318011
- Schulz KF, Grimes DA. Unequal group sizes in randomised trials: guarding against guessing. Lancet. 2002;359(9310):966-970. PubMed 11918933
Algorithm checked against an independent Python implementation and a battery of 37 statistical tests, and content checked against the cited sources, on 20 October 2026 by the WeGuide editorial team. This tool is for research planning and education. It does not conceal allocations, is not a randomisation system for live trials, and has not been validated as a computerised system for regulated use.

