Random Integer Generator

Produce lists of whole numbers between 1 and 1000, with duplicates blocked whenever you need distinct values.

Integers20 generated
  1. 655
  2. 787
  3. 589
  4. 242
  5. 631
  6. 935
  7. 956
  8. 358
  9. 931
  10. 855
  11. 262
  12. 566
  13. 990
  14. 213
  15. 327
  16. 200
  17. 518
  18. 743
  19. 523
  20. 397
Runs locally in your browser

About the Random Integer Generator

Each value is a whole number from 1 to 1000 inclusive, drawn from the browser cryptographic random source rather than a seeded pseudo random sequence. The distribution is flat, so 7 is exactly as likely as 704, and no value is favoured by a rounding shortcut. That matters when the numbers are going into a sampling frame or a statistics lesson where bias would be noticed.

Turning off repeats gives you a sample without replacement, which is what you want for drawing raffle tickets, assigning distinct identifiers or picking rows from a numbered dataset. Left on, repeats simulate rolling the same die many times, which is the right model for a frequency exercise. Asking for more than a thousand distinct values is impossible by definition, so the run stops when the range is exhausted.

The list arrives as plain text, one number per line by default, so it pastes straight into a spreadsheet column. Switch to commas when you need an inline array. For a custom minimum and maximum, use the Random Number Generator. If you need the numbers written out for a worksheet, run the output through Number to Words.

How to use

  1. Enter how many integers you need, up to a thousand in one run.
  2. Untick No repeats if the same value is allowed to appear twice.
  3. Press Generate and read the numbers in the output pane.
  4. Copy them as a column, or switch the separator to commas for an inline list.

Common questions

What range does this cover?
Whole numbers from 1 to 1000 inclusive. For a different span, use the Random Number Generator where you set the bounds yourself.
Is the randomness good enough for a prize draw?
It uses the browser cryptographic generator, which is far stronger than a simple pseudo random function, so it is fine for a raffle or a classroom draw.
How do I sample without replacement?
Leave the no repeats box ticked. Every number in that run will then be distinct.
Can I paste the result into Excel?
Yes. Keep one number per line and paste into a column, or choose commas and use text to columns.