Random Number Generator
Numbers in any range, with or without duplicates
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.
How to use Random Number Generator
Type the bounds into Minimum and Maximum, then set How many? anywhere from 1 to 1000.
Tick No duplicates (raffle mode) if the same value must not come up twice.
Pick Unsorted, Ascending or Descending in the Sort dropdown.
Press Generate numbers — the label under the output box reports how many values came back and the observed range.
- 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.
- 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.