More in Ledger (5)
Ledger · Randomness
Random Number Generator
Draw random whole numbers from any range. Lock the seed when the draw has to be reproducible, for raffles, test splits, or anything someone may want to check later.
How to use Random Number Generator
- Enter the Minimum and Maximum. Both ends are included, so 1 to 100 can return 1 or 100.
- Set How many numbers to draw, from 1 to 1,000.
- Leave Unique values on for no repeats, or turn it off to allow duplicates. Tick Sort ascending if you want the list in order.
- For a draw you can replay later, turn on Reproducible (seeded) and type any seed text, such as sprint-17.
- Press Draw numbers, then Copy list to grab the results as a comma-separated list.
01 · Real-world fits
Common use cases
- Picking 3 raffle winners from 250 numbered tickets, with Unique values on so nobody wins twice
- Cold-calling students by drawing from 1 to the number of seats in the room
- Choosing 20 rows out of 5,000 to spot-check in an audit, sorted so they are easy to find in the spreadsheet
- Announcing a seed before a giveaway so anyone can rerun the draw and confirm the winners
- Getting the same random test inputs on every run while you debug
- Deciding who goes first in a board game with one draw from 1 to the number of players
02 · The honest pitch
Why Random Number Generator?
No-repeat draws are built in. With Unique values on, a number that already came up is thrown out and redrawn, and the tool refuses outright if you ask for more unique numbers than the range holds. The seed option makes a draw repeatable: the same seed, range, count, and options always give the same list, which is how you prove a giveaway wasn't rerun until a friend won. Your range, count, and the Unique and Sort toggles are written into the page URL, so a bookmark brings back the same setup. The numbers are generated in your browser.
03 · Edge cases