Random Number Generator

Generate one or more random numbers within a range you choose.

Random number(s)
Range
Sum

Results update as you type.

About this calculator

A random number generator picks numbers at random between a lower and upper bound you set. Choose whole numbers or two-decimal values, how many to draw at once, and whether duplicates are allowed. A fresh set is generated every time you change a value, so re-drawing is as simple as nudging any field.

Worked example: to pick a raffle winner from 250 tickets, set the range 1 to 250 and draw one whole number. To choose five distinct prize winners, set the count to 5 and switch “No duplicates” to unique — the tool then returns five different numbers in that range and totals them.

It is handy for raffles and giveaways, choosing a random participant, generating dice-like results, sampling rows from a list, or picking lottery-style numbers. The result also shows the range used and the sum of the numbers drawn.

Frequently asked questions

Are the numbers truly random?

They use the browser’s built-in pseudo-random generator, which is uniform and more than fair for games, draws and everyday sampling, but is not cryptographically secure — do not use it to generate passwords or security keys.

How do I draw several unique numbers?

Open advanced options, set “How many numbers” and switch “No duplicates” to unique. The generator then draws that many distinct values from the range — ideal for a raffle where each ticket can only win once.

Are the minimum and maximum included in the range?

Yes — both bounds are inclusive for whole numbers, so a range of 1 to 6 can return any of 1, 2, 3, 4, 5 or 6, just like a die. If you enter the maximum below the minimum the calculator simply swaps them.

Can I generate decimal numbers?

Yes — set the number type to decimals under advanced options and it returns values rounded to two decimal places within the range, useful for randomised measurements, prices or probabilities.

Can I use it to pick lottery numbers?

Yes — set the range to match your lottery (say 1 to 49), the count to how many numbers are drawn, and “No duplicates” to unique so no number repeats. It is a fair uniform draw, though remember every combination has exactly the same odds.

Can this random number generator draw negative numbers?

Yes — set the minimum to a negative value (for example −10 to 10) and the generator draws from the whole span, including zero and the negatives.

❤️ Love Calculator.Free? Share it

𝕏  X Facebook Reddit
API — use this calculator from code

Call this calculator as a free JSON endpoint — no key required. Send the field values below as query parameters or JSON. Read the full API docs →

Endpoint

GET https://calculator.free/api/v1/random-number/

curl

curl "https://calculator.free/api/v1/random-number/?min=1&max=100"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/random-number/?" + new URLSearchParams({
    "min": "1",
    "max": "100"
  }));
const data = await r.json();
console.log(data.results);

Results are estimates for general guidance only, not financial, medical or tax advice.