What Does the Random Number Generator Calculate?
Generates uniform random integers inclusively between your minimum and maximum bounds, optionally guaranteeing every picked number is unique.
How to Use This Calculator
- Set your lower bound, upper bound, and count.
- Choose whether numbers must be unique and click Calculate to draw.
Uniform Integer Mapping
Value = floor(U × (Max − Min + 1)) + Min
Maps uniform pseudorandom draws U ∈ [0, 1) evenly across every integer in [Min, Max].
Worked Example: Drawing 5 Unique Integers Between 1 and 100
Raffle or classroom selection.
- Range size = 100 − 1 + 1 = 100 possible integers
- Draw 5 distinct integers without replacement
Result: 5 distinct integers between 1 and 100
Key Assumptions & Scope
- Uses standard browser pseudorandom generation suitable for games, raffles, and sampling (not cryptographic keys).
Frequently Asked Questions
Are both the minimum and maximum numbers included?
Yes. Both endpoints are inclusive.