Random Number Generator: Fair Picks in Any Range
Pick random numbers in a range, with or without repeats.
Choose the lowest and highest number (both can come up), how many numbers to draw, and whether a number may come up twice. Generate draws them from your device’s cryptographic random number generator, the one used for passwords, and every number in the range is equally likely: a draw that would favour some numbers over others is thrown away and made again. The draws before the last are listed until the window is closed; nothing is stored. In Options: numbers with decimal places (0.01 steps, say), the numbers in order, and a raffle mode in which a number drawn isn’t drawn again until Start over, as in bingo. The numbers can be copied or sent to another tool, one a line. Random draws are fair, but this is not a certified draw for a lottery or a prize where the law asks for one.
How to use Random number generator
- Type the lowest number in From and the highest in To, or press one of the Quick picks.
- Set How many numbers to draw, and turn No repeats on or off.
- Press Generate, then Copy; Options has decimal places, the order and a raffle mode.
Random number generator: common questions
How does a random number generator pick a fair number?
Hoglet’s random number generator draws from your device’s cryptographic generator (crypto.getRandomValues). A draw that would land past the end of the range is thrown away and made again, so every number from From to To, both included, is equally likely.
Can I pick random numbers with no repeats?
Yes. With No repeats on, each number is drawn from those not yet drawn, so every set of different numbers is equally likely. The raffle mode in Options goes further: a number drawn isn’t drawn again, from one press to the next, until Start over.
Can this random number generator be used for a lottery draw?
Its draws are fair, every number in the range equally likely, but the random number generator is not a certified draw for a lottery or a prize where the law asks for one.
Everything stays on your device. Nothing is uploaded. Works offline once your first visit has stored the app.