Random Number Generator
Generate cryptographically secure random numbers, integers, or decimals within a custom range.
Advanced — Integers · Duplicates allowed · Crypto-random
What is Random Number Generator?
A random number generator produces random numbers within a specified range. ToolCrux uses the Web Crypto API (crypto.getRandomValues) for cryptographically secure randomness—suitable for security-sensitive applications like tokens, sampling, and fair draws. It supports integers or decimals, with optional no-duplicates mode. All generation runs in your browser with no data sent to any server.
Real-world use cases include picking lottery numbers, generating passwords or tokens, running simulations, selecting random samples for testing, creating dice rolls for games, and conducting fair draws or raffles. Developers use it for seeding tests; educators use it for random assignment.
How to Use Random Number Generator
- Set Min and Max to define the range (e.g., 1–100 for a typical dice-style range).
- Set Count (1–100) for how many numbers to generate.
- Click Generate or press Ctrl+Enter. Use Generate 10 for quick batches.
- Open Advanced to enable Integers only, No duplicates, or a seed for reproducible results.
- Click Copy or press Ctrl+Shift+C to copy the output.
Tips & Best Practices
For unique integers (e.g., lottery picks), enable Integers only and No duplicates—the range (Max − Min + 1) must be at least as large as Count. Use a seed in Advanced for reproducible sequences (e.g., debugging). Without a seed, the generator uses crypto-random values. Press Esc to clear. For secure passwords, try our password generator.
When to Use This Tool
Use the random number generator for fair draws, simulations, testing, games, and any scenario requiring unbiased randomness. Pair it with the password generator for secure credentials, or the age calculator for date-based computations.
Frequently Asked Questions
What is a random number generator?
A random number generator produces random numbers within a specified range. ToolCrux uses cryptographically secure randomness (crypto.getRandomValues) and supports integers or decimals, with optional no-duplicates mode.
How do I generate random numbers?
Set Min and Max, choose Count (1–100), optionally enable Integers only or No duplicates. Click Generate or Generate 10. Results appear instantly. Use Copy to copy the output.
Are the numbers cryptographically secure?
Yes. The generator uses the Web Crypto API (crypto.getRandomValues), which provides cryptographically strong random values suitable for security-sensitive applications.
Can I generate multiple unique numbers?
Yes. Enable No duplicates and Integers only, set Count to the desired number. The range (Max - Min + 1) must be at least as large as Count. Try our age calculator for date-based computations.
Is the random number generator free?
Yes. The ToolCrux random number generator is free, runs entirely in your browser, and requires no signup. No data is sent to any server.