Random Sampling Tool screenshot

Random Sampling Tool

Draw a seeded random sample of values from a pasted list, without replacement.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Runs in this tab
No signup

What this page computes

Paste one value per line, then type how many to draw and a seed. The page shuffles the line numbers with a seeded Fisher–Yates pass and takes the first k, so every value is equally likely and no value is drawn twice. It prints each drawn value with the line it came from, the seed, and the counts, and it lists them in line order so the source list can be checked. Up to the whole list can be drawn.

The seed makes the draw reproducible: this is a pseudo-random sequence from mulberry32, not entropy, and it is not suitable for anything that needs unpredictability. Drawing more values than the list holds, or fewer than one, is refused with both numbers.

The shuffle runs in this tab on the pasted text, so the same list and seed always draw the same sample.

The page draws a sample without replacement from a pasted list, using a seeded Fisher–Yates shuffle. With seed 42 it draws three values from the eight-value list and names each with the line it came from, so a duplicate value is distinguishable from a duplicate line. The draw count runs from 1 to the number of values, and the same seed and the same list reproduce the same sample.

Draw a reproducible random sample from a pasted list, without replacement, with each drawn value’s line number.

How to use it

Paste the list to draw from with one value per line, then type how many to draw and the seed. The count cannot exceed the number of lines, and the refusal names both numbers. Each drawn value is printed with its line number, which is what tells two identical values apart when the list repeats.

Without replacement, reproducible from the seed

Sampling is without replacement: once a line is drawn it is out, so the sample can never contain the same line twice. The shuffle is Fisher–Yates driven by the same seeded generator as the random number page, so the result is uniform over all samples of that size and reproducible from the seed. The drawn values are printed in their original order rather than shuffle order, so the sample reads against the paste.

What to Expect

Best for

  • Picking an auditable subset of a list

What this tool keeps

  • Nothing leaves this tab: the arithmetic runs in the page you are reading, and a reload discards both the input and the result.

Sample input

2 4 4 4 5 5 7 9

Sample output

drawn: 4 (line 2), 4 (line 3), 9 (line 8) seed = 42, 3 of 8 values seeded Fisher–Yates: uniform without replacement, and the same seed draws the same set

Frequently asked questions

Can the same line be drawn twice?

No. The draw is without replacement, so each line can appear at most once, and the printed line numbers prove which line each value came from.

Will the same seed give the same sample?

Yes, for the same list, count and seed. The shuffle is Fisher–Yates driven by the seeded mulberry32 generator, so a draw can be repeated and checked.

Is my list uploaded?

No. The shuffle and the draw happen in this page, so the list never leaves the tab and nothing is stored.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.