Math

Random Number Generator

Generate one or many random numbers. Integers, decimals, or values from a normal distribution. Customize adds weighted random (pick from value:weight pairs), sort, and seeded reproducibility.

ModeQuick mode is integers / decimals in a range. Customize adds normal (Gaussian) distribution, weighted random from value:weight pairs, sort, and seed for reproducibility.
Click Generate to draw fresh random numbers.

Related tools

How to use

  1. 1

    Pick the type: integers (with or without duplicates) or decimals.

  2. 2

    Set the range — min and max are both included. Then how many to generate.

  3. 3

    Click Generate. Each click produces a fresh random set.

  4. 4

    Switch to Customize for normal/Gaussian distribution, weighted random (value:weight pairs), sort, and a seed for reproducibility.

Frequently asked questions

It uses the Web Crypto API's getRandomValues, which is cryptographically secure pseudo-random. Suitable for almost any purpose — raffle winners, sampling, decision-making, even basic security tokens. For high-stakes cryptography or formal lotteries, use a hardware random source.

With duplicates: each number is drawn independently, so the same value can appear more than once (like repeated dice rolls). Without duplicates: like drawing names from a hat — once a number is picked, it can't be picked again. Without-duplicates needs the range to be at least as large as the count.

Most natural measurements (heights, IQ scores, measurement errors) follow a bell curve — most values cluster near the mean and extremes are rare. Setting mean = 0 and SD = 1 gives the standard normal distribution. About 68% of values fall within ±1 SD, 95% within ±2 SD, 99.7% within ±3 SD. Useful for Monte Carlo simulation, statistical testing, and modelling.

Each value gets a relative weight. Higher weight = more likely. The probability of value v is weight(v) ÷ sum(weights). Example: red:3, blue:2, green:5 → total 10, so red 30%, blue 20%, green 50%. Use this for biased dice, loaded lotteries, or sampling with non-uniform probabilities.

Yes. Min can be negative, max can be negative. As long as max > min the calculator handles any range. For Gaussian, the mean can be any number including negatives.

A seed makes randomness reproducible. Same seed + same inputs = same output every time. Useful for debugging, sharing results, or A/B testing. Leave empty for genuinely fresh randomness each click.

Help us improve this calculator

What's missing or wrong? What would make this more useful for you? Every suggestion lands in our inbox.

We don't share emails. Replies come from hello@liphyr.com.

Source: Web Crypto API getRandomValues + Box-Muller for Gaussian · Last verified 2026-06. This tool provides estimates only and is not legal, tax or financial advice. Always verify your specific situation with the relevant UAE authority or a licensed advisor before taking action.