Random Number Generator

Generate random integers or decimals in a chosen range. Use a seed for repeatable results, or unique mode for no-duplicate integer picks.

Nothing is uploaded and no sign-in: every draw uses local pseudo-randomness, with optional seeds for reproducible lists you can share.

Other languages ja | en | zh-CN | zh-TW | es | pt-BR | id | fr | hi-IN | ar

Why use this generator?

Set your range and options

Choose integer or decimal mode, set range, count, and seed. Keep everything aligned so you can verify and reuse results quickly.

Results


        

Tips

Use seeds to reproduce the same list later or to share with students. If you only need one decimal, reduce Decimal places to minimise rounding noise.

Unique mode is available for integers only. Widen the range or lower the count if you see a range warning.

Random number workflow: fairness first, then convenience

This tool becomes far more valuable when you separate two goals: reproducibility and unpredictability. Reproducibility is useful for demos, tests, and shared exercises. Unpredictability is necessary for real draws and simulations where prior knowledge must not influence outcomes. The seed option intentionally favors reproducibility, so use it only when reruns should match exactly. For fairness-sensitive draws, leave seed disabled, document parameters, and store only setup metadata.

Recommended operating pattern

Common mistakes

Mini audit example

Suppose you need 200 random IDs from 1-500 without duplicates for load-test allocation. Set integer mode, unique on, count 200, and no seed for production runs. For bug reproduction, rerun the same configuration with a fixed seed and attach the seed value to the issue ticket. This gives both fair production behavior and deterministic debugging behavior without mixing the two workflows.

See also

How to use this tool effectively

This guide helps you use Random Number Generator in a repeatable way: define a baseline, change one variable at a time, and interpret outputs with explicit assumptions before you share or act on results.

How it works

The page applies deterministic logic to your inputs and shows rounded output for readability. Treat it as a comparison workflow: run one baseline case, adjust a single parameter, and measure both absolute and percentage deltas. If a result seems off, verify units, time basis, and sign conventions before drawing conclusions. This approach keeps your analysis reproducible across teammates and sessions.

When to use

Use this page when you need a fast estimate, a classroom check, or a practical what-if comparison. It works best for planning and prioritization steps where you need direction and magnitude quickly before investing in deeper modeling, manual spreadsheets, or formal external review.

Common mistakes to avoid

Interpretation and worked example

Run a baseline scenario and keep that result visible. Next, modify one assumption to reflect your realistic alternative and compare direction plus size of change. If the direction matches your domain expectation and the size is plausible, your setup is usually coherent. If not, check hidden defaults, boundary conditions, and interpretation notes before deciding which scenario to adopt.

See also

Frequently asked questions

How do seeds affect the generated numbers?

When you enable a seed, the generator uses a repeatable pseudo-random sequence so the same inputs produce the same output list. Leave seed blank to auto-fill with a timestamp for quick sharing.

How can I avoid duplicates?

Turn on Unique values only while in Integer mode. If the requested count exceeds the integer range, the tool will warn you so you can widen the range or lower the count.

Can I use this output for passwords or security tokens?

No. Use dedicated cryptographic token generators for security material. This page is designed for general sampling workflows.

What happens if Integer mode receives decimal limits?

The generator normalizes to integer boundaries. Always review the displayed range after input so assumptions remain explicit.

How can I check whether draws look balanced?

Run multiple batches and inspect frequency counts or histograms. Small batches naturally fluctuate, so compare larger samples before judging bias.

Examples & notes

Reproducible lists (seeded)

Turn on “Use seed” to recreate the same list later (useful for worksheets and fair re-draws). Seeded output is deterministic, so don’t use it for passwords, API keys, or security tokens.

Unique integers

Unique-only works for integers only. You can generate at most (max − min + 1) unique values. If you request more, widen the range or lower the count.

Decimals and rounding

Decimals are rounded to the selected number of decimal places, so different raw draws can display as the same value. If duplicates matter, use Integer mode or increase Decimal places.

Randomness source

Without a seed, the generator uses your browser’s random source (crypto.getRandomValues when available, otherwise Math.random). With a seed, results come from a deterministic generator.

Related tools

Related calculators