Randomness you can actually reason about
LOCALDraw integers, dice, coins and names from the browser's cryptographic source, corrected for modulo bias, with no seed, history or upload.
How it works
- 01
Choose a mode
Three tabs cover plain integers between two limits, dice and coins, and a draw from a list of names. Switching keeps what you typed, and nothing is generated until you press the button, so an idle visit records no use.
- 02
Set sensible limits
Minimum and maximum are whole numbers within one billion; the count stops at one hundred. Without repetition the tool checks that the range holds enough distinct values, so five unique numbers from one to four are refused.
- 03
Generate and read the summary
Each click pulls fresh values. Beneath the list you get the sum, average, smallest and largest; dice show every die and the total, coins count heads and tails, and draws without replacement remove each winner from the pool.
When to use it
Fair giveaways
Picking a winner from commenters needs a method people can see. Paste the names, set the number of winners and switch repetition off so nobody wins twice: each drawn name leaves the pool.
Games and prototypes
Game masters and developers testing a mechanic need dice quickly. The d4 to d100 buttons cover the usual polyhedrals, and rolling twenty at once beats finding a physical set; every roll stays independent.
Sampling and test data
Taking the first ten rows can bias a sample toward one day or region. Export the identifiers, draw as many as you need without replacement, and every item has the same chance of appearing.
Questions
Is this genuinely random or pseudorandom?
Values come from crypto.getRandomValues, which the browser seeds from the operating system, so earlier outputs do not help predict later ones. It is not a physical dice throw, and no software can prove unpredictability, but it avoids the deterministic replay of Math.random. Treat it as practical unpredictability rather than a formal mathematical proof.
What is modulo bias and how is it avoided?
Dividing a random 32-bit number by six leaves remainders that are not equally likely, because 2^32 is not divisible by six. The tool discards raw values above the largest multiple of the range, then takes the remainder, so every outcome has exactly the same probability. Rejection sampling costs a few extra bytes only.
Are the dice statistically fair?
Each face of a dN has probability one in N, because corrected random values are spread evenly across the faces: a d6 gives 16.67 percent per face and a d20 five percent. Sixty rolls will not produce ten of each, and visible streaks are normal evidence of randomness. That spread is expected.
Can I use this for passwords or keys?
Please do not. This is a convenience tool for games, sampling and decisions, not a key manager. A browser tab can be compromised by extensions, clipboard snooping or malicious scripts, and there is no secure storage; use a dedicated password manager or your system key generator instead.
What happens to the names I paste?
They stay in the page memory and vanish when you close or reload the tab. There is no account, database or server round trip, because the draw runs locally. A shared device may still have extensions or history features outside this page's control, so treat names like any typed text.
How many values can I generate at once?
Up to one hundred integers, twenty dice and one hundred coin flips, with lists capped at two hundred entries. The limits keep the result readable and the page responsive; for thousands of values, generate in batches or use a scripting environment with the same cryptographic primitive.