Set a lowest and a highest value and let Slumpa draw one or more numbers in between. Both bounds are included, so the range 1–10 can give you both 1 and 10.
Random numbers without bias
Numbers are drawn with the browser's cryptographic random generator combined with rejection sampling. That technique throws away the raw values that would otherwise make some numbers marginally more common than others – the flaw you get from taking a modulo of a random value directly.
The result is an even distribution across the whole range, which matters as soon as the draw has to be genuinely fair rather than merely approximate.
Ranges people use most
1–6 stands in for a dice, 1–100 is the usual choice for percentages and raffle tickets, and 1–49 covers a lottery line. Negative values work too if you need a range that crosses zero.
Frequently asked questions
- Are the minimum and maximum included?
- Yes, both bounds can be drawn. The range 1–10 therefore contains ten possible numbers.
- Can I generate several numbers at once?
- Yes, set the count and several numbers are drawn together. The same number can appear more than once.
