Skip to content
Test versionSearch

Developer tools

Random integer generator

Generate 1 to 100 random integers between your minimum and maximum, with or without repeats, using random numbers from browser getRandomValues.

How it worksFAQRelated tools

Content reviewed:

Change the settings and press Generate. You can download the result as TXT; passwords are never added to the scenario list. Nothing is saved or sent automatically.

Everything is generated in this browser tab; nothing is stored or sent. Without repeats the range must contain at least as many numbers as you request.

Decimal results are approximate. Inputs stay in this browser tab.

How it works

Each value is drawn with the browser’s cryptographic random generator (crypto.getRandomValues) from the characters, words or range you choose. Draws that fall outside the range are discarded and repeated, so every allowed value is equally likely. Everything is generated in this browser tab; nothing is stored or sent. Without repeats the range must contain at least as many numbers as you request.

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

Values (1–100)
10
Minimum (−1e9 to 1e9)
1
Maximum (−1e9 to 1e9)
100
Allow repeated values
Yes

Result

Generated values
10
Exact generated values JSON: part 1
["43","67","3","46","5","78","47","1","96","100"]

Frequently asked questions

How do I generate random integers in a range?

Enter how many values you want, from 1 to 100, plus a minimum and maximum, then select Generate. The default example draws 10 values between 1 and 100.

What range of numbers can I use?

The minimum and maximum can each be from −1e9 to 1e9.

Can I generate numbers without repeats?

Yes. Set Allow repeated values to No to draw values without duplicates. Choosing Yes allows repeats.

How does the random integer generator work?

It uses browser getRandomValues with bounded rejection sampling. The draws are bounded random draws made locally.

How many numbers can I generate at once?

You can generate 1 to 100 values per run.

Can I download the generated numbers?

Yes. A deliberate TXT download is available. There is no automatic saving or sending.

Can I control how the numbers are displayed?

Yes. You can set numeric report precision from 0 to 12. Generated strings retain the declared precision.