Random number generator tips: inclusive ranges, repeats, and fair picks
Random draws fail when the rules are unclear. The good news is that most issues are settings problems.
Start here:
- Open the Random Number Generator.
- Set min, max, and how many numbers you need.
- Copy the results.
Min and max are inclusive
Inclusive means the endpoints can appear in the output.
If you set:
- min = 1
- max = 6
You are simulating a standard die. Both 1 and 6 can show up.
Repeats can happen
If you generate multiple numbers, the generator can repeat values. That is expected when you sample with replacement.
If you need no repeats:
- Use a list-based picker with
allow duplicatesturned off, like the Random Choice Generator. - Or generate one number at a time and remove it from the pool yourself.
When to avoid replacement
- Giveaways: Each entrant should have only one slot—use no-duplicates.
- Study samples: If you are sampling participants, do not allow repeats unless the protocol requires it.
- Task rotation: When assigning duties, remove names after selection, then reset next cycle.
Practical examples
| Goal | Min | Max | Count |
|---|---|---|---|
| Pick a winner from 1 to 250 | 1 | 250 | 1 |
| Roll five dice | 1 | 6 | 5 |
| Create ten practice problems | 10 | 99 | 10 |
| Generate negative test values | -50 | 50 | 20 |
Check your draws for obvious bias
- Run the generator 20–30 times; scan for values at the edges (min/max) to confirm they appear.
- If you export results, keep the seed or the list so you can show how you picked winners.
- Avoid manually “fixing” outputs—if you need a specific distribution, use the right tool (e.g., random choice on a predefined list).
How to use Textavia's random number generator
- Open the Random Number Generator.
- Set
Minimum Value,Maximum Value, andHow Many Numbers. - Copy the output.
Notes on randomness and "fairness"
Textavia uses the Web Crypto API (crypto.getRandomValues) to generate unpredictable values. For games, classroom picks, testing, and everyday decisions, this is what you want.
If you are running a serious lottery with money on the line, you should use a process designed for auditability, not a browser tool.
Simple workflow for draws
- Decide whether you allow repeats. If not, switch to the Random Choice Generator.
- Set a sensible range; avoid massive ranges you do not need.
- Generate, copy, and store the output with the date/time.
- If stakes are high, have a second person watch the draw or screen-record it.
Quick sanity checks before announcing results
- Rerun once with the same settings to see if the distribution feels reasonable (repeats are okay with replacement).
- If a number cannot appear (e.g., 0 when min=1), re-check min/max inputs.
- Make sure you did not paste whitespace into numeric fields; trim the inputs if results look off.
- When sharing results, include the range and count so others can understand how the draw worked.
FAQs
Can I reproduce a draw later?
The current tool does not expose seeds; if you need reproducibility, copy the exact results and settings as evidence.
Is the range inclusive?
Yes. Both endpoints can appear. If you want 1–5 without 5, set max to 4.
Why did I see the same number twice in a small range?
With replacement, repeats are expected—especially in small ranges. Use the random choice tool without duplicates if you need unique picks.
Do decimals work?
This generator is for integers. If you need decimals, generate integers and divide, or use a list-based picker with your decimal values.
Related tools
- Pick from names, tasks, or options with the Random Choice Generator.
- Create unique IDs for test data with the UUID generator.
- Generate strong secrets with the password generator.
Privacy and security
Random generation runs locally in your browser. Your settings and results are not uploaded to a server.
