Quick guide
How to use the Random Number Generator 1–100
- Enter or choose how many numbers?, repetition within batch, eligible numbers, display order, exclude numbers or ranges (optional), session history filter.
- Select Generate numbers.
- Review the main result, supporting breakdown, and step-by-step calculation notes.
- Copy the output or download the generated file when available.
What this tool does
Draw one or more integers from the fixed inclusive 1–100 pool with odd/even eligibility filters, custom exclusions (individual integers or ranges such as 3, 8, 20-25), optional session history filtering to avoid previous draws, non-redrawing ascending sort, and CSV export. All sampling uses crypto.getRandomValues() with unbiased rejection sampling.
Calculation method
- Start with all integers from 1 through 100 inclusive and apply any Odd-only or Even-only filter first.
- Remove every individual number and inclusive range listed in Exclusions, plus previously drawn session numbers if session history filtering is enabled.
- Sample up to 100 numbers via Fisher–Yates shuffle (without repeats) or independent rejection sampling (with repeats), rejecting impossible counts rather than silently truncating.
- Retain up to 20 session batches in browser memory, allow sorting between generated and ascending order without redrawing, and export position,number CSV.
Example: draw five odd numbers from 1–100 excluding 20–25
Input: Count: 5; Repetition: No repeats; Eligible: Odd only; Exclude: 3, 8, 20-25
Result: 5 unique odd values such as 17, 41, 63, 79, 95 (46 eligible numbers remaining)
Odd filtering leaves 50 numbers; removing 3, 21, 23, and 25 leaves 46 eligible numbers (8 and even numbers in 20–25 were already outside the odd pool). Switching Display order to Ascending sorts the drawn batch in place without redrawing.
Practical uses
- Classroom picks and raffle boards (1–100)
- Board-game and tabletop percentile (d100) rolls
- Auditable random sampling with excluded IDs
- Multi-round prize draws avoiding previous winners
Accuracy tips and common mistakes
- Changing settings or switching Display order to Ascending never silently triggers a new draw; click Generate numbers only when you want a fresh draw.
- Session draw history is stored in memory only and resets automatically on page reload or when you click “Reset history & pool.”
- Use a regulated and independently audited system for legally controlled lotteries.