Skip to main content
eyunzhu

Random integer generator

Generate random integers in an inclusive range, with unique results, sorting and support for numbers beyond JavaScript’s safe integer range.


    
Processed in this browser. Nothing is uploaded or saved.

About this tool

Draw numbered samples or prepare randomized test data without expanding the entire range into a list.

How to use

Set the minimum, maximum and quantity, then generate a batch. Enable no repeats for sampling without replacement, and optionally sort the result. Copy the list or download it as text. Changing settings clears the old batch until you generate again.

Uses cryptographically secure browser randomness and unbiased sampling. Both endpoints are included. Generate up to 10,000 values; a unique batch cannot exceed the range. Each endpoint allows 256 digits and the range size allows 100 digits.

Common questions

Are both endpoints included?

Yes. Minimum and maximum can both be drawn. Sampling uses browser cryptographic randomness; a unique batch cannot contain more values than the range offers.

Does the no-repeat option remember previous batches?

No. Uniqueness applies only within the batch being generated; a new run can repeat values from earlier batches. Sorting orders a newly generated batch. Changing any option clears the current result, so save it before adjusting the settings and generating again.

Comments

0
to join the discussion.
No comments yet.
Reply thread

Follow the complete conversation chronologically; each reply identifies the specific message it answers.