Random Number Generator
Adjust parameters to auto-generate
Generating...
Rolling dice...
result(s) color(s)
Free online random number generator. Generate integers, decimals, passwords, strings and colors instantly. 100% private — runs locally in your browser.
How to Generate Random Values
Select a Mode
Choose from 6 modes: Integer, Decimal, Dice, String, Color, or Lottery.
Configure Parameters
Set the range, count, and other options for your chosen mode.
Generate
Click the generate button to create random values instantly.
Copy Results
Copy individual results or all results at once with the copy button.
Tips & Tricks
Instant Generation & Live Preview
Results auto-regenerate after adjusting any parameters — no need to manually click "Generate". Integer ranges, dice faces, string length and all other parameters respond instantly. What you see is what you get.
Six Modes, One-Click Switch
Integer, Decimal, Dice, String, Color, and Lottery — six random modes toggle at the top. Each mode's parameters switch automatically, and the result area intelligently adapts its display.
History & Batch Export
Every generation is automatically saved to the history list. Click any history item to restore the results from that session. Batch mode is supported (Integer/Decimal/String can generate many results at once), and all results can be copied to clipboard with one click.
Common Use Cases
Board Game Dice
D&D Campaign Rolls
Prize Draw
Party/Livestream Draw
Password Gen
PIN & strong passwords
Verification Codes
6-digit/Letter Combos
Color Inspiration
HEX/RGB Palettes
FAQ
Are the generated numbers truly random?
Yes, in the cryptographic sense. Every value — including password strings — is drawn from the browser's crypto.getRandomValues(), the same CSPRNG used for encryption keys, with rejection sampling so there is no modulo bias. Generation happens locally and nothing is sent anywhere. A random string is only ever as safe as how you store and use it.
Is the dice animation real?
The values shown during the dice animation are generated in real-time, but the final result is determined by the algorithm before the animation starts. The animation simply creates the visual effect of "rolling the dice". The result of each roll is fixed before the animation begins — there is no "decide after the fact" issue.
How do I use the lottery custom list?
Enter each option and press Enter or a comma. Options are automatically converted into blue chip tags. Click the × on a tag to remove it. Supports Chinese, English, numbers, or any text. For example, enter "Alice, Bob, Charlie" (comma-separated) or add them one per line.
Can I generate many results at once?
Integer, Decimal, and String modes support manually entering the generation count. The "Count" parameter for Integer/Decimal modes can be set to any value (recommended not to exceed 10000). The same applies to String mode. All results are displayed in a list and can be exported with one click via "Copy All".
How is this different from other online random number tools?
Most online random number tools only offer a single integer mode. This tool integrates 6 random modes and adds interactive enhancements such as dice animation, history recall, and instant auto-generation. More importantly, all computation happens locally in the browser — nothing goes through a server.