Random Number Generator — Integers & Decimals (Inclusive)

Pick a random integer or decimal in a custom range. Inclusive bounds, precision control, optional bulk output. Private by design.

Range & Options

Bounds are inclusive after rounding by default. Use endpoint mode and step size to narrow the allowed values.

About the Random Number Generator

Release Updates

v1.1 March 12, 2026

  • Added a custom step size option so the generator can roll values like `0.25`, `0.50`, or `5` instead of every representable decimal.
  • Added endpoint controls for inclusive, exclusive, left-open, and right-open ranges.
  • Added bulk output separator options for new lines, comma-separated text, spaces, and CSV-friendly output.
  • Added bulk result sorting so lists can stay random, or be returned in ascending or descending order.
  • Added weighted distributions for rolls biased toward the minimum, maximum, or middle of the allowed sequence.

This random number generator helps you pick fair, unbiased numbers in any range you choose. It is useful for games, classroom activities, simulations, and quick calculations where you need an impartial roll. You can generate a single number or a list of results, choose integers or decimals, apply a custom step size, and control whether the endpoints are included.

The concept is simple: the tool builds the set of allowed values from your minimum, maximum, decimal precision, endpoint mode, and optional step size, then samples from that set. If you set decimal places to 0, you will get integers only. If you need values like 0.25, 0.50, and 0.75, use a matching step size. You can also keep the results in random order, sort them, or bias the distribution toward the minimum, maximum, or middle.

How it works

The generator runs entirely in your browser. When available, it uses the Web Crypto API (crypto.getRandomValues()) for stronger randomness and falls back to Math.random() if needed. No input is sent to a server, which keeps your data private and the tool fast.

How to use it

  1. Enter the minimum and maximum values for your range.
  2. Choose the number of decimal places you want (0 for integers).
  3. Set how many results you want to generate.
  4. Optionally add a step size, choose endpoint mode, and pick a distribution.
  5. Enable "No repeats" if you want unique integers only.
  6. Choose a separator or sort order for bulk output, then click Generate.

Common use cases include rolling a virtual die, picking a random winner number, generating practice data for spreadsheets, creating sample values for testing, or selecting randomized parameters for experiments. Teachers can use it to build worksheets, developers can use it to create test fixtures, and players can use it as a fast digital dice roller.

  • Minimum value: The smallest number that can be generated.
  • Maximum value: The largest number that can be generated.
  • Decimal places: Controls precision; 0 means integers only.
  • Count: Generates a list of results in one click.
  • Step size: Limits output to evenly spaced values such as 0.25 or 5.
  • Endpoint mode: Controls whether min and max are included.
  • No repeats: Prevents duplicates for integer lists.

If you want predictable, repeatable numbers for security keys or cryptographic purposes, use a dedicated secure tool. For everyday random selection, this generator offers a quick, clear, and flexible way to pick numbers with confidence.

Advertisement

5 Fun Facts about Random Numbers

Browsers borrow tiny noises

When available, this tool uses crypto.getRandomValues(), which your OS seeds with hardware jitter, fan noise, and timing wiggles—real-world physics sneaks into every digit.

Hardware entropy

Inclusive edges = no ghost values

By rounding min/max to your decimal places and sampling inclusively, edge values like 2.5 or 999 remain just as likely as the middle—even in decimal mode.

Fair ranges

Humans make bad dice

Asked to “think of a number 1–10,” people rarely pick 1 or 10; that bias is how casinos flag manual shuffles. Let the generator roll—it loves the edges we subconsciously avoid.

Cognitive bias

Decimals are scaled integers

Your decimal output is really an integer roll multiplied by 10^-dp. Want 4 decimal places? We roll 0–9999 uniformly, then drop the decimal point. Simple, fast, precise.

Math trick

Ping-pong balls still rule lotteries

Even in 2025, many lottery draws use air-blasted ping-pong balls because you can literally watch the randomness happen—a theatrical reminder of what this digital tool simulates.

Lottery lore

FAQs

Are the bounds inclusive?

Yes. Results are returned within the inclusive range [min, max] after rounding.

Can I generate integers only?

Absolutely—set decimal places to 0.

Is this cryptographically secure?

Not for security-critical use. The tool prefers crypto.getRandomValues() when available and falls back to Math.random(), but it is designed for general-purpose random selection rather than key or token generation.

Can I repeat results or generate multiple numbers?

Yes. Set the count to generate multiple values at once, and enable No repeats when you want unique integers only.

Can I restrict the generator to specific increments?

Yes. Use Step size to limit output to evenly spaced values such as 0.25, 0.5, or 5, based on your selected decimal precision.

Explore more tools