BrowserTools

Random Number Generator

Numbers in any range, with or without duplicates

By Guga — BrowserTools maintainer, Tbilisi, Georgia Updated 2026-09-21
Free Private No uploads
What is Random Number Generator?

Minimum and Maximum are both editable, and the generator takes them in either order, so pasting a range backwards does not produce an error. Count runs from 1 to 1,000. The raffle mode checkbox removes duplicates, which caps the batch at the size of the range itself — asking for 500 unique values between 1 and 100 quietly returns 100, because that is all there are. Sort has three positions: Unsorted keeps draw order, which is the one you want for a raffle record, while Ascending and Descending reorder the same values for reading them. Every value comes from randInt, which draws 32-bit values and discards any that would skew the distribution near the top of the range, so each integer in the interval is genuinely equally likely rather than slightly favoured.

Pick random numbers between any minimum and maximum, in bulk, with options for uniqueness and sorting. Uses the browser's crypto-grade randomness for fair draws, raffles and games.

Private Random Number Generator In Your Browser

Random Number Generator is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.

Step-by-Step

How to use Random Number Generator

1

Type the bounds into Minimum and Maximum, then set How many? anywhere from 1 to 1000.

2

Tick No duplicates (raffle mode) if the same value must not come up twice.

3

Pick Unsorted, Ascending or Descending in the Sort dropdown.

4

Press Generate numbers — the label under the output box reports how many values came back and the observed range.

Key Capabilities
  • Inclusive bounds in either direction — Minimum and Maximum are swapped automatically if entered backwards.
  • No duplicates mode that clamps the requested batch to the width of the interval.
  • Up to 1,000 values per run, sortable ascending, descending or left in draw order.
  • randInt uses rejection sampling on a 32-bit crypto draw, avoiding the modulo bias a plain remainder would introduce.
Common Use Cases
  • A scout running a raffle sets 1 to 500, ticks No duplicates and generates 25 winning ticket numbers in draw order.
  • A statistics lecturer samples 200 values from 1 to 100 for a Monte Carlo exercise and sorts them ascending to spot the gaps.
  • A developer writing a property test needs 500 integers between -1000 and 1000, duplicates allowed, to fuzz a range check.
Clear Answers

Frequently Asked Questions

I asked for 500 unique numbers between 1 and 100 and got 100. Why?
That range contains exactly 100 integers, so duplicates aside there is nothing more to hand out. The batch size is clamped to the range width rather than failing, which is the behaviour you want when you forget to check the bounds.
Why does the box show sample numbers before I press Generate?
The page opens with a fixed placeholder list so the panel is not empty on arrival. Change any field or press the button and the placeholder is replaced by a real draw.
Can the bounds be negative or very large?
Yes. The values are parsed as integers and randInt handles ranges beyond a 32-bit span by widening to BigInt, so date offsets and epoch offsets both work as bounds.

Related Guides

View all guides →