Home

PRIVATE BROWSER TOOL · PHASE 1

Weighted Multi-Item Sampler

Sample several labeled rows with explicit positive weights, either with or without replacement. 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 label,weight. Duplicate labels remain separate rows.

Ready. Entries and results stay in this browser tab.

Choose your settings, then select Generate.

How it works

  1. Parse each nonempty row into a stable label position and finite positive weight.
  2. Draw against cumulative weight with replacement, or remove only the selected row and its weight after each draw.
  3. Return selection order and counts while keeping duplicate labels distinguishable by input row.

Worked example

Weights 60, 25, and 15 start at 60%, 25%, and 15%; without replacement those probabilities are recalculated after every draw.

Limits and interpretation

  • At most 1,000 weighted rows and 10,000 replacement draws are accepted.
  • Weights must be finite, positive, and collectively remain within the safe numeric bound.
  • Without replacement, draw count cannot exceed the number of rows regardless of duplicate labels.

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 Weighted Multi-Item Sampler make its random choices?
A secure uniform draw is mapped over cumulative positive weight; no-replacement mode rebuilds the remaining weight total after each selection.
Does Weighted Multi-Item 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 Weighted Multi-Item Sampler?
Use it for transparent weighted simulations or allocations where multiple outcomes and replacement rules must be visible.

Related tools