Random Number Generator
Pick one number or draw a whole list. Try a range of 1 to 6 for a quick dice roll.
Settings and generated numbers stay in browser memory. Refreshing clears results and Undo; nothing is saved or added to URLs.Enter your settings, then Generate. Both bounds are included. Presentation changes reuse the stored draw.
Uses the browser’s secure random source with no insecure fallback. Sets: 1 · whole numbers · exclusions off · history off. Unique draws are unique within each set; different sets may overlap.
Your random numbers
No numbers have been generated yet.
Advanced — decimals, weights, exclusions, sets and test history
Number grid and dice
Dice presets select the inclusive 1–N whole-number range. They do not add certification or automatically change your other options.
Weighted numeric values
Up to 1,000 distinct numeric values, CSV up to 128 KiB. Weights are whole numbers 0–1,000,000,000; at least one must be positive. Values use the selected decimal precision. Weighted mode ignores stored range/exclusion fields.
Excluded ranges
Up to 100 inclusive intervals, CSV up to 32 KiB, entirely within the active bounds. Overlapping or adjacent intervals are merged; values are never enumerated over a huge range. Weighted mode uses zero weights instead.
Independent sets and matrices
At most 10,000 total values across all sets and cells. Every set starts a new unique-selection pool; uniqueness does not carry between sets. Matrix values fill rows in the selected output order.
Reproducible test mode
Seed mode uses SHA-256 blocks of a versioned seed/set/counter record, read as eight big-endian 32-bit words with rejection sampling. It is predictable and intended for repeatable tests. The same seed and draw settings reproduce the values; changing order, separator or histogram does not redraw. No insecure fallback is used if a required source is unavailable.
History and histogram
Off initially. Entries include captured input settings and any test seed. No automatic browser storage or uploads. The oldest entry leaves the rolling list when a sixth draw is added.
Equal-width bins cover the captured inclusive numeric grid; excluded or zero-weight gaps can remain empty. Counts include all sets and cells. Histogram changes summarize the existing draw.
How to draw random numbers
Choose whole numbers, a decimal grid or weighted numeric values. For a range, enter inclusive minimum/maximum and quantity, then choose whether repeated values are allowed. Generate makes a new draw; order and separator only reformat stored values. Copy or download complete TXT, CSV or JSON.
Advanced holds 0–6 decimal places, complete weighted CSV, excluded intervals, multiple sets, matrices, dice presets and reproducible test mode. All sets and cells together are limited to 10,000 values. Decimal bounds must lie exactly on the selected fixed-point grid. Each unique set starts its own pool, so sets may overlap.
Weighted CSV uses value,weight with distinct numeric values and nonnegative integer weights; zero weights never draw. Without repeats, weights are renormalized after each selection. Exclusions use minimum,maximum CSV, within the main bounds, and are ignored in weighted mode. Presets keep other active options visible.
Enable the optional rolling five-entry history to retain future complete draws in this tab. Open an entry without drawing again. Histograms show observed counts, not a randomness test. Matrix previews can be cropped, but every cell is in full exports. Cancel keeps the previous complete draw; Clear/Reset and Undo restore captured work without silently drawing again.
Example: pick five student numbers
Try an example selects 1 through 30, quantity 5, no repeats, ascending order and comma-space separation. Generate gives five distinct student numbers. A later fresh draw can include the same students. For reproducible practice, open Advanced, choose seeded TEST mode and supply a seed; repeating the same draw settings and seed reproduces the values.
For a finite decimal example, choose 0.00 through 0.03 with two decimal places and four unique values. The eligible grid is exactly 0.00, 0.01, 0.02 and 0.03. Excluding 0.01 through 0.02 leaves only the endpoints.
About random and reproducible draws
The default uses the browser’s secure random source, exact BigInt ranges and rejection sampling. No insecure fallback is used. Whole-number bounds remain within ±1,000,000,000,000,000,000. Decimals scale that range to exact integer grid units, avoiding floating-point rounding.
Seeded mode is a predictable, versioned test stream rather than secret randomness. It is unsuitable for passwords, cryptographic keys or certified prize draws. Optional constraints and weights change the population you sample. Draws can repeat previous results; the tool does not reroll just to make a result look different.
Work, Undo and optional history remain in this tab and clear on reload. Downloaded files retain complete active draw settings and results; seeded files include the test seed. Clipboard access requires your action and has a selectable full-text fallback.
Stars and feedback
Loading…
What could we improve in Random number generator?
Email us feedback@tooltulip.com
Tool reference #106