Random Number Generator
Generate random integers within any custom minimum and maximum range. Zero modulo bias, endpoints inclusive, and instant session history.
Session History (0)
No numbers generated yet in this session. Click “Generate Number” above.
Why Rejection Sampling Prevents Modulo Bias
Many naive online random generators use standard pseudo-random functions like Math.random() % range. When the range size does not divide evenly into the generator’s resolution, smaller integers get picked more often than larger ones — a statistical flaw known as modulo bias.
Rejection Sampling
Our algorithm draws 32-bit hardware entropy and discards any values that fall in the remainder band, guaranteeing exact uniform distribution.
Negative & Zero Ranges
Full mathematical support for arbitrary integer boundaries, including negative spans like -50 to +50 and binary 0 to 1.
Practical Everyday Uses
- Raffles & Giveaways: Pick winning ticket numbers transparently and without bias.
- Classroom Selection: Fairly select students by roster number for presentations or pop quizzes.
- Scientific Sampling: Draw random data points or randomize experimental subject groups.
- Gamified Decisions: Pick numbers for board games, secret Santa gift assignments, or bingo calling.
