| name | randomization-gen |
| description | Generate block randomization lists for RCTs |
| version | 1.0.0 |
| category | Pharma |
| tags | [] |
| author | AIPOCH |
| license | MIT |
| status | Draft |
| risk_level | Medium |
| skill_type | Tool/Script |
| owner | AIPOCH |
| reviewer | |
| last_updated | 2026-02-06 |
Randomization Gen
RCT randomization table generator.
Use Cases
- Clinical trial design
- Animal study randomization
- Blocked randomization
- Stratified allocation
Parameters
| Parameter | Type | Required | Description |
|---|
n_subjects | int | Yes | Total sample size |
n_groups | int | Yes | Number of arms/groups |
block_size | int | Yes | Block size (must be multiple of n_groups) |
--output | string | No | Output file path (default: randomization.txt) |
Returns
- Randomization sequence
- Block assignments
- Allocation concealment ready
Example
Input: n=120, 3 groups, block=6
Output: Sealed randomization list
Risk Assessment
| Risk Indicator | Assessment | Level |
|---|
| Code Execution | Python/R scripts executed locally | Medium |
| Network Access | No external API calls | Low |
| File System Access | Read input files, write output files | Medium |
| Instruction Tampering | Standard prompt guidelines | Low |
| Data Exposure | Output files saved to workspace | Low |
Security Checklist