How this calculator works
Set an inclusive range or a list, choose how many selections to make, then generate values in your browser.
- Step 1Choose a sourceRange or listUse whole values, fixed-precision decimals or your own options.
- Step 2Set the drawUp to 5 by defaultChoose the result count, repeats and display order.
- Step 3Generate on demandPress GenerateThe browser creates results only after your action.
A range includes both its minimum and maximum. Integer mode selects whole numbers. Decimal mode uses an evenly spaced grid, such as steps of 0.01, rather than selecting from infinitely many possible decimal values.
- Inclusive boundsBoth endpoints can be selected.
- No repeatsUnique mode selects each distinct value at most once.
- Sorted displaySorting changes the order shown after selection, not the draw.
The range selection uses rejection sampling: it draws enough random bits to cover the range, then discards values outside it.
This avoids the uneven probabilities that a simple remainder operation can introduce. A partial Fisher–Yates shuffle handles unique selections without creating a huge array for wide numeric ranges.
Worked example
- Inclusive size
N = maximum − minimum + 1- Possible outcomes
N = 6 − 1 + 1 = 6- Selected sample
fixed test words → selected indices 0, 1, 2
- minimumfirst included value 1
- maximumlast included value 6
- counthow many values to select 3
- Inclusive number of values6 − 1 + 16
- Selected indices0, 1, 20, 1, 2
- Add the minimum1 + offsets1, 2, 3
This is a reproducible teaching example from fixed test words, not a generated result or a promise about future draws. A live result is created only when you press Generate.
Reading your result
- With repeatsA value may recurEach selection is drawn independently from the full range or list.
- UniqueNo repeated valuesThe count must not exceed the number of distinct available options.
The result card shows the values selected for the current settings. Sorting puts them in ascending order after the draw. The URL can preserve the settings, but not the results, because every new draw is different.
Mistake: Entering a maximum below the minimum.
Instead: Check that the range goes from the lower value to the higher value.
Mistake: Requesting more unique items than the list contains.
Instead: Lower the count or add more distinct choices.
Mistake: Treating the fixed example as a live random draw.
Instead: Press Generate; only that action creates a fresh result.
Assumptions and limits
- Fixed precisionDecimal mode selects from a grid of up to six decimal places.
- No security claimThe implementation has not been independently audited.
- No saved outcomesOnly settings are stored in the address; no values leave your browser.
This general-purpose generator is not for lotteries, gambling or cryptographic key generation. Do not use it where a certified draw, auditable process or security review is required.
Frequently asked questions
Are the minimum and maximum included?
Yes. Both ends of a valid numeric range are possible results.
Can I generate decimal values?
Yes. Select Decimals and choose from zero to six places. The bounds must fit the chosen precision, and each possible value lies on that fixed decimal grid.
What does unique mean for a list?
Each distinct non-empty line can be selected at most once. Duplicate lines are collapsed in unique mode, while repeat mode preserves their extra weight.
Does sorting change the chance of a value being selected?
No. The generator first selects values, then sorts the displayed results if you enable sorting.
Can I share the generated results?
No. The URL saves settings only. It never contains a generated result, so opening the same address creates no saved or repeatable draw.
Is this suitable for a lottery or gambling draw?
No. It is a general-purpose utility, not a certified or independently audited draw system.
Can I use the results as cryptographic keys?
No. Do not use this tool for cryptographic keys or other security-sensitive purposes.
Does my list leave my device?
No. Selection and URL state handling happen in your browser; the site does not send list items or results to a server.
Other tools that use randomness
Random draws answer one question; dice, passwords and probabilities each have a tool built for them.
To roll dice and see the exact chance of each total, use the dice roller. For a strong password made on your device, try the password generator.
To work out the chance of an event over several tries, the probability calculator shows the arithmetic.
Read how we test our calculators, or browse more everyday tools.