About This Calculator
Generate random integers within any range. Use the calculator above for instant results.
Worked Examples
Example 1: 1 to 100
- e.g. 42 (random each time!)
Answer: Random 1-100
Example 2: 1 to 6 (dice roll), 2 numbers
- e.g. 4 and 2
Answer: Dice rolls
Example 3: 1 to 52 (card draw)
- Random card index
Answer: Card draw
Who Uses This Calculator?
Games
Dice rolls and random events.
Research
Random sampling.
Teachers
Random student selection.
Developers
Quick random numbers.
Common Mistakes to Avoid
❌ Not truly random
Math.random() is pseudorandom. Sufficient for games and sampling.
❌ Range is inclusive
Both min and max can be generated.
Frequently Asked Questions
Truly random?
True random uses physical sources. Pseudorandom (computer) is sufficient for most uses.
Dice probability?
1/6 per face = 16.7%. Two dice: 7 is most likely (6/36 = 16.7%).
Shuffle a list?
Assign random number to each item, sort by it.