Skip to main content

Random Generator

Pure Frontend 6 Modes Batch Generation Instant Preview
Separator

Online random number generator. Supports integers, decimals, passwords, strings and colors. Pure frontend computation.

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?

This tool uses the browser's Math.random() to generate pseudo-random numbers, suitable for everyday use (prize draws, testing, data seeding, etc.). For cryptographically secure random numbers (used for key generation, tokens, etc.), we recommend professional tools that use crypto.getRandomValues().

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.