Generate a Range of Random Integers screenshot

Generate a Range of Random Integers

Draw integers inside a minimum and maximum and print them in ascending or descending order, from a repeatable seed.

Privacy First
0 Runs
Updated 2026-11-06
No upload
No signup
Runs in this tab

Integers in order

Enter a count, a lowest and a highest integer, and choose ascending or descending. The page draws each value uniformly from the inclusive range with a seeded 32-bit stream — an FNV-1a hash of the seed text followed by xorshift32 steps — then sorts the result. A minimum above the maximum is refused rather than swapped, and a span wider than one million is refused so a single click cannot print forever.

Values are drawn with replacement, so duplicates appear when the count approaches the width of the range. That is stated on the page, because a caller expecting distinct numbers would otherwise read a repeat as a fault. The sort is numeric, so 9 comes before 10.

The draws and the sort run in this tab. Nothing is uploaded, no list is stored, and the same seed prints the same sequence after a reload.

Draw integers inside a minimum and maximum and print them in ascending or descending order, from a seeded stream that repeats on the same seed.

It is a fixture generator with replacement, not a shuffle and not a cryptographic source: duplicates are expected and nothing leaves the tab.

How to use Generate a Range of Random Integers

Set Lowest integer and Highest integer, type How many integers, and choose Order ascending or descending.

Press Run and read the integers; they are drawn with replacement, so a repeated value is expected rather than a bug.

Copy the Seed with the list: the same seed, range and order print the same numbers.

Draw, then sort

Each value is one step of the seeded stream modulo the width of the range, added to the minimum. Only after every value is drawn is the list sorted, so the order is a property of the printed list rather than of the draw.

The seed makes the run reproducible. The same seed, range and order print the same list, which is what a test fixture needs and what a fresh seed cannot give you.

What to Expect

Best for

  • Making a repeatable number list for a test or a worksheet.
  • Filling a mock table with plausible values.

What this tool keeps

  • The draws and the sort happen in the browser and the seed is never posted, so the page works offline and retains nothing.

Sample input

Count 8, range 1–100, ascending, seed "gaps-e"

Sample output

6, 30, 31, 65, 72, 75, 77, 92 8 integers in 1…100, ascending, seeded by "gaps-e". Values are drawn with replacement, so a repeat is expected in a small range.

Frequently asked questions

Are the integers distinct?

No. Values are drawn with replacement from your range, so a repeat is expected once the count approaches the width of the range. The page states that on every answer.

How is the order decided?

The drawn values are sorted numerically after the draw, ascending or descending. Numeric sorting is why 9 comes before 10, which a text sort gets wrong.

What is refused?

A worst above the maximum is refused rather than swapped, a span wider than one million is refused, and a count outside 1–1000 is refused. Nothing is uploaded and no list is stored.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.