RandomNr

Advanced and Statistical

Random Sample Generator

Draw a simple random sample of rows or IDs from a population, with or without replacement.

Random Sample Generator

3 17 44 ...

Sample of 10 from 1000

Population

Sample

Draw a fair random sample

This tool draws a simple random sample from a population you provide. Paste a list of names or IDs, or sample from numbered rows by setting 1 to N, then choose your sample size. Every member has the same chance of being picked, which is what makes the sample fair.

With and without replacement

A sample without replacement takes each item at most once, the normal way to choose people for a survey or rows for an audit. A sample with replacement can pick the same item more than once, which is what resampling methods such as the bootstrap need. Switch between the two with the option.

Fair and private

The sample is drawn by shuffling with the browser cryptographic random source, so no member is favoured. Your population never leaves the device, which makes the tool safe for lists you would not want to upload.

Popular generators

Frequently asked questions

What is a random sample

A subset drawn from a larger population so that every member has an equal chance of being chosen, which lets you study the whole from a fair slice.

With or without replacement

Without replacement, each item can be picked once, the usual choice for a survey sample. With replacement, an item can be drawn more than once, which suits bootstrap style resampling.

Can I sample from my own list

Yes. Paste your population one item per line, or leave it empty and set 1 to N to sample from numbered rows.

How large can it be

Populations up to one hundred thousand and samples up to ten thousand, which covers most practical sampling.

Is it free

Yes, free and with no sign up.

Related generators

To split a list into groups instead, use the group assignment generator, or draw plain numbers with the no repeats generator.