Home

PRIVATE BROWSER TOOL · PHASE 1

Stratified Random Sampler

Draw a proportional or equal allocation from labeled strata while preserving every source row's identity. The complete workflow runs locally in this browser, with visible controls and a result you can inspect before copying or downloading.

LOCAL WORKBENCH

Generate a result

No upload · no account · no URL storage

Use stratum,value.

Ready. Entries and results stay in this browser tab.

Choose your settings, then select Generate.

How it works

  1. Parse each source row into a named stratum and stable row identity.
  2. Calculate integer stratum quotas with documented remainder allocation and capacity checks.
  3. Sample within each stratum without replacement, then combine in stratum order or an optional secure shuffle.

Worked example

A proportional sample of 4 from strata sized 3, 2, and 1 allocates quotas before any individual rows are selected.

Limits and interpretation

  • Input is capped at 50,000 rows, 500 strata, and 5 MB of text.
  • Requested quotas cannot exceed a stratum's available rows; impossible allocations are reported.
  • The tool does not infer whether a chosen stratification variable is statistically appropriate.

Privacy

Your inputs and generated results stay in this browser. This tool does not put them in a URL, analytics event, server log, or external request.

Frequently asked questions

How does Stratified Random Sampler make its random choices?
Quota calculation is deterministic; each stratum then uses its own secure sample without replacement.
Does Stratified Random Sampler upload my inputs or results?
No. Values stay in the current browser tab and are not placed in the URL, analytics, storage, or network requests.
When should I use Stratified Random Sampler?
Use it when every named subgroup needs explicit representation in a local sample and the allocation rule must be auditable.

Related tools